Skip to content

Commit

Permalink
haxe.io.Bytes getI32/setI32 is now getInt32/setInt32, fixed neko 2.1 …
Browse files Browse the repository at this point in the history
…usage
  • Loading branch information
ncannasse committed Mar 1, 2015
1 parent f00315e commit 0e0aa82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions std/haxe/io/Bytes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Bytes {
if( pos < 0 || pos + 8 > length ) throw Error.OutsideBounds;
return untyped __global__.__hxcpp_memory_get_double(b,pos);
#else
return FPHelper.i64ToDouble(getI32(pos),getI32(pos+4));
return FPHelper.i64ToDouble(getInt32(pos),getInt32(pos+4));
#end
}

Expand Down Expand Up @@ -295,7 +295,7 @@ class Bytes {
/**
Returns the 32 bit integer at given position (in low endian encoding).
**/
public inline function getI32( pos : Int ) : Int {
public inline function getInt32( pos : Int ) : Int {
#if neko_v21
return untyped $sget32(b, pos, false);
#else
Expand All @@ -306,7 +306,7 @@ class Bytes {
/**
Store the 32 bit integer at given position (in low endian encoding).
**/
public inline function setI32( pos : Int, value : Int ) : Void {
public inline function setInt32( pos : Int, value : Int ) : Void {
#if neko_v21
untyped $sset32(b, pos, value, false);
#else
Expand Down
8 changes: 4 additions & 4 deletions std/haxe/io/FPHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FPHelper {
public static function i32ToFloat( i : Int ) : Float {
#if neko
#if neko_v21
return untyped $itof(i);
return untyped $itof(i,false);
#else
var helper = helperf.value;
if( helper == null )
Expand Down Expand Up @@ -109,7 +109,7 @@ class FPHelper {
public static function floatToI32( f : Float ) : Int {
#if neko
#if neko_v21
return untyped $ftoi(f);
return untyped $ftoi(f,false);
#else
var r = _float_bytes(f,false);
return untyped $sget(r,0) | ($sget(r,1)<<8) | ($sget(r,2)<<16) | ($sget(r,3)<<24);
Expand Down Expand Up @@ -149,7 +149,7 @@ class FPHelper {
public static function i64ToDouble( low : Int, high : Int ) : Float {
#if neko
#if neko_v21
return untyped $itod(low,high);
return untyped $itod(low,high,false);
#else
var helper = helperd.value;
if( helper == null )
Expand Down Expand Up @@ -215,7 +215,7 @@ class FPHelper {
helper[1] = haxe.Int64.ofInt(0);
}
var i64 : haxe.Int64 = helper[1], int2 = helper[0];
untyped $dtoi(v,int2);
untyped $dtoi(v,int2,false);
@:privateAccess {
i64.low = int2[0];
i64.high = int2[1];
Expand Down

0 comments on commit 0e0aa82

Please sign in to comment.