浏览代码

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

Dan Korostelev 9 年之前
父节点
当前提交
c446d7be85
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;