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