From: Michael Beck Date: Tue, 21 Feb 2006 13:54:26 +0000 (+0000) Subject: make get_irg_graph_nr() 64-bit save X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a0738d0d99c1ec84037d2d2637999da783d00a64;p=libfirm make get_irg_graph_nr() 64-bit save [r7361] --- diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 923795444..7e492a2bd 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -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 }