make get_irg_graph_nr() 64-bit save
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:54:26 +0000 (13:54 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:54:26 +0000 (13:54 +0000)
[r7361]

ir/ir/irgraph.c

index 9237954..7e492a2 100644 (file)
@@ -32,6 +32,7 @@
 #include "mangle.h"
 #include "irouts.h"
 #include "irhooks.h"
+#include "irtools.h"
 #include "irgwalk.h"
 #include "iredges_t.h"
 #include "type_t.h"
@@ -365,14 +366,12 @@ int
 }
 
 /* Outputs a unique number for this node */
-
-long
-get_irg_graph_nr(ir_graph *irg) {
+long get_irg_graph_nr(ir_graph *irg) {
   assert(irg);
 #ifdef DEBUG_libfirm
   return irg->graph_nr;
 #else
-  return (long)irg;
+  return (long)PTR_TO_INT(irg);
 #endif
 }