Explorar o código

Fix meaning of compare

Hugh Sanderson %!s(int64=13) %!d(string=hai) anos
pai
achega
ab6cbcc944
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      std/cpp/vm/Thread.hx

+ 2 - 2
std/cpp/vm/Thread.hx

@@ -65,8 +65,8 @@ class Thread {
 		return untyped __global__.__hxcpp_thread_read_message(block);
 	}
 
-	function __compare(t) {
-		return untyped handle == t.handle;
+	function __compare(t) : Int {
+		return handle == t.handle ? 0 : 1;
 	}
 
 }