|
@@ -50,6 +50,9 @@ abstract Int64(__Int64) from __Int64 to __Int64
|
|
@:from public static inline function ofInt( x : Int ) : Int64
|
|
@:from public static inline function ofInt( x : Int ) : Int64
|
|
return cast x;
|
|
return cast x;
|
|
|
|
|
|
|
|
+ inline public static function is( val : Dynamic ) : Bool
|
|
|
|
+ return Std.is(val,java.lang.Long.LongClass);
|
|
|
|
+
|
|
public static inline function toInt( x : Int64 ) : Int {
|
|
public static inline function toInt( x : Int64 ) : Int {
|
|
if( x.val < 0x80000000 || x.val > 0x7FFFFFFF )
|
|
if( x.val < 0x80000000 || x.val > 0x7FFFFFFF )
|
|
throw "Overflow";
|
|
throw "Overflow";
|