From 9a1befe1ee86daae0004e5f7b6f3cacc073c3bfa Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 21 Feb 2006 13:55:48 +0000 Subject: [PATCH] make get_irn_node_nr() 64bit safe [r7363] --- ir/ir/irnode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 8e184cd21..44e3ff160 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -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 } -- 2.20.1