Fix Int32 typed array get/set on Neko
This commit is contained in:
@@ -519,8 +519,8 @@ private abstract TypedArrayType(Int) from Int to Int {
|
|||||||
#if cpp
|
#if cpp
|
||||||
untyped return __global__.__hxcpp_memory_get_i32(buffer.getData(), byteOffset);
|
untyped return __global__.__hxcpp_memory_get_i32(buffer.getData(), byteOffset);
|
||||||
#else
|
#else
|
||||||
#if (haxe_ver > 3103)
|
#if (haxe_ver >= 3.2)
|
||||||
return buffer.getI32(byteOffset);
|
return buffer.getInt32(byteOffset);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
var ch1 = getInt8(buffer, byteOffset );
|
var ch1 = getInt8(buffer, byteOffset );
|
||||||
@@ -544,8 +544,8 @@ private abstract TypedArrayType(Int) from Int to Int {
|
|||||||
#if cpp
|
#if cpp
|
||||||
untyped __global__.__hxcpp_memory_set_i32(buffer.getData(), byteOffset, value);
|
untyped __global__.__hxcpp_memory_set_i32(buffer.getData(), byteOffset, value);
|
||||||
#else
|
#else
|
||||||
#if (haxe_ver > 3103)
|
#if (haxe_ver >= 3.2)
|
||||||
buffer.setI32(byteOffset,value);
|
buffer.setInt32(byteOffset,value);
|
||||||
#else
|
#else
|
||||||
if (littleEndian) {
|
if (littleEndian) {
|
||||||
setInt8(buffer, byteOffset , value );
|
setInt8(buffer, byteOffset , value );
|
||||||
|
|||||||
Reference in New Issue
Block a user