make get_irn_node_nr() 64bit safe
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:55:48 +0000 (13:55 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:55:48 +0000 (13:55 +0000)
[r7363]

ir/ir/irnode.c

index 8e184cd..44e3ff1 100644 (file)
@@ -30,6 +30,7 @@
 #include "iredges_t.h"
 
 #include "irhooks.h"
+#include "irtools.h"
 
 /* some constants fixing the positions of nodes predecessors
    in the in array */
@@ -465,13 +466,12 @@ void firm_set_irn_section(ir_node *n, struct section *s) {}
 
 
 /* Outputs a unique number for this node */
-long
-get_irn_node_nr(const ir_node *node) {
+long get_irn_node_nr(const ir_node *node) {
   assert(node);
 #ifdef DEBUG_libfirm
   return node->node_nr;
 #else
-  return (long)node;
+  return (long)PTR_TO_INT(node);
 #endif
 }