From fad0a86ab076b11b239ad494e4525881757c4282 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 19 Jan 2011 00:02:20 +0000 Subject: [PATCH] Let PTR_TO_INT return ptrdiff_t now instead of int. [r28255] --- ir/common/irtools.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/common/irtools.h b/ir/common/irtools.h index afa6e7f0c..9c361b860 100644 --- a/ir/common/irtools.h +++ b/ir/common/irtools.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -59,7 +59,7 @@ lc_opt_entry_t *firm_opt_get_root(void); /** * convert a pointer into an integer */ -#define PTR_TO_INT(v) ((int)((char *)(v) - (char *)0)) +#define PTR_TO_INT(v) (((char *)(v) - (char *)0)) /** * Dump a pset containing Firm objects. -- 2.20.1