Explorar o código

Make Int64.neg use negation on java and not bitwise negation.

Georg Koester %!s(int64=10) %!d(string=hai) anos
pai
achega
6a9cd837d7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/java/_std/haxe/Int64.hx

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

@@ -111,7 +111,7 @@ import java.StdTypes.Int64 in NativeInt64;
 
 	public static inline function neg( a : Int64 ) : Int64
 	{
-		return (~(a.asNative())).ofNative();
+		return (-(a.asNative())).ofNative();
 	}
 
 	public static inline function isNeg( a : Int64 ) : Bool