From: Michael Beck Date: Wed, 19 Jan 2011 00:02:20 +0000 (+0000) Subject: Let PTR_TO_INT return ptrdiff_t now instead of int. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fad0a86ab076b11b239ad494e4525881757c4282;p=libfirm Let PTR_TO_INT return ptrdiff_t now instead of int. [r28255] --- 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.