From e5070c5ed4303d314a995b4da92a403b45b86a73 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 21 Mar 2017 12:17:51 -0700 Subject: [PATCH] subarray fix --- lime/utils/ArrayBufferView.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lime/utils/ArrayBufferView.hx b/lime/utils/ArrayBufferView.hx index d23f82ee1..0b86d9065 100644 --- a/lime/utils/ArrayBufferView.hx +++ b/lime/utils/ArrayBufferView.hx @@ -164,7 +164,7 @@ package lime.utils; #if !no_typedarray_inline inline #end function subarray( begin:Int, end:Null = null ) : T_subarray { - if (end == null) end == length; + if (end == null) end = length; var len = end - begin; var byte_offset = toByteLength(begin) + byteOffset; @@ -824,4 +824,4 @@ abstract TypedArrayType(Int) from Int to Int { //#error "ArrayBufferIO is not used on js target, use DataView instead" -#end //!js \ No newline at end of file +#end //!js