ByteArray fix
This commit is contained in:
@@ -723,7 +723,7 @@ class ByteArray #if !js extends Bytes #end implements ArrayAccess<Int> #if !js i
|
|||||||
data.setFloat64 (this.position, x, littleEndian);
|
data.setFloat64 (this.position, x, littleEndian);
|
||||||
this.position += 8;
|
this.position += 8;
|
||||||
#else
|
#else
|
||||||
ensureElem (position + 8, true);
|
ensureElem (position + 7, true);
|
||||||
setDouble (position, x);
|
setDouble (position, x);
|
||||||
position += 8;
|
position += 8;
|
||||||
#end
|
#end
|
||||||
@@ -751,7 +751,7 @@ class ByteArray #if !js extends Bytes #end implements ArrayAccess<Int> #if !js i
|
|||||||
data.setFloat32 (this.position, x, littleEndian);
|
data.setFloat32 (this.position, x, littleEndian);
|
||||||
this.position += 4;
|
this.position += 4;
|
||||||
#else
|
#else
|
||||||
ensureElem (position + 4, true);
|
ensureElem (position + 3, true);
|
||||||
setFloat (position, x);
|
setFloat (position, x);
|
||||||
position += 4;
|
position += 4;
|
||||||
#end
|
#end
|
||||||
|
|||||||
Reference in New Issue
Block a user