소스 검색

Merge pull request #2355 from nitrobin/patch-1

Incorrect cast in haxe.Int64.getLow() (java target)
Cauê Waneck 11 년 전
부모
커밋
1cbeb81cdb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/java/_std/haxe/Int64.hx

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

@@ -37,7 +37,7 @@ private typedef NativeInt64 = Int;
 
 	public static inline function getLow( x : Int64 ) : Int
 	{
-		return cast (x.asNative() & untyped __java__("0xFFFFFFFFL"));
+		return cast (x.asNative() & untyped __java__("0xFFFFFFFFL"), Int);
 	}
 
 	public static inline function getHigh( x : Int64 ) : Int