Browse Source

[java] properly type long literal in haxe.Int64.make

Dan Korostelev 9 years ago
parent
commit
c446d7be85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/java/_std/haxe/Int64.hx

+ 1 - 1
std/java/_std/haxe/Int64.hx

@@ -31,7 +31,7 @@ abstract Int64(__Int64) from __Int64 to __Int64
 {
 {
 
 
 	public static inline function make( high : Int32, low : Int32 ) : Int64
 	public static inline function make( high : Int32, low : Int32 ) : Int64
-		return new Int64( (cast(high, __Int64) << 32) | (cast(low, __Int64)& untyped __java__('0xffffffffL')) );
+		return new Int64( (cast(high, __Int64) << 32) | (cast(low, __Int64)& (untyped __java__('0xffffffffL') : Int64)) );
 
 
 	private inline function new(x : __Int64)
 	private inline function new(x : __Int64)
 		this = x;
 		this = x;