|
@@ -57,7 +57,7 @@ class Int32 {
|
|
|
|
|
|
public static inline function toNativeInt( x : Int32 ) : Int {
|
|
public static inline function toNativeInt( x : Int32 ) : Int {
|
|
#if neko
|
|
#if neko
|
|
- return try untyped __i32__to_int(x) catch( e : Dynamic ) throw "Overflow"+x;
|
|
|
|
|
|
+ return untyped (__i32__ushr(x,8) << 8) | __i32__and(x,0xFF);
|
|
#else
|
|
#else
|
|
return cast x;
|
|
return cast x;
|
|
#end
|
|
#end
|