Browse Source

Merge pull request #3314 from Atry/patch-1

Fix Int64.ushr
Cauê Waneck 11 years ago
parent
commit
26ef97e36c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/cs/_std/haxe/Int64.hx

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

@@ -93,7 +93,7 @@ import cs.StdTypes.UInt64 in NativeUInt64;
 	}
 
 	public static inline function ushr( a : Int64, b : Int ) : Int64 {
-		return ( cast(a, NativeUInt64) >> b).ofUNative();
+		return cast(cast(a, NativeUInt64) >> b, NativeInt64).ofNative();
 	}
 
 	public static inline function and( a : Int64, b : Int64 ) : Int64