Преглед на файлове

Make Int64.neg use negation on c# and not bitwise negation.

Georg Koester преди 10 години
родител
ревизия
8d1f68e945
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      std/cs/_std/haxe/Int64.hx

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

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