Browse Source

Fix meaning of compare

Hugh Sanderson 13 years ago
parent
commit
ab6cbcc944
1 changed files with 2 additions and 2 deletions
  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);
 		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;
 	}
 	}
 
 
 }
 }