Hash() should return an unsigned
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 21 May 2007 13:03:39 +0000 (13:03 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 21 May 2007 13:03:39 +0000 (13:03 +0000)
[r13949]

ir/ir/irnodeset.c

index f8c93b9..1dc79ef 100644 (file)
@@ -39,7 +39,7 @@
 #define NullValue                 NULL
 #define DeletedValue              ((ir_node*)-1)
 #ifdef DEBUG_libfirm
-#define Hash(this,value)          (value)->node_nr
+#define Hash(this,value)          ((unsigned)((value)->node_nr))
 #else
 #define Hash(this,value)          HASH_PTR(value)
 #endif