Update haxe.io.Bytes

This commit is contained in:
Joshua Granick
2017-09-19 11:25:54 -07:00
parent 58c94ba8bf
commit 3d37cd1c55

View File

@@ -249,8 +249,7 @@ class Bytes {
if( pos < 0 || pos + 4 > length ) throw Error.OutsideBounds;
return untyped __global__.__hxcpp_memory_get_float(b,pos);
#else
var b = new haxe.io.BytesInput(this,pos,4);
return b.readFloat();
return FPHelper.i32ToFloat(getInt32(pos));
#end
}