소스 검색

Fix meaning of compare

Hugh Sanderson 13 년 전
부모
커밋
ab6cbcc944
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
 	}
 
 }