summaryrefslogtreecommitdiff
path: root/gcc/obstack.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-07-26 09:03:32 -0700
committerYamaArashi <shadow962@live.com>2016-07-26 09:03:32 -0700
commit223a19fd9b279fa90e34bfcb48fbf7124b96d896 (patch)
tree283ca90d0515899e6e54cd9e97146565366b6120 /gcc/obstack.c
parentf3580e4659c20e4f46f180d92f8b8f0211f3d855 (diff)
maybe fix 64-bit
Diffstat (limited to 'gcc/obstack.c')
-rwxr-xr-xgcc/obstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/obstack.c b/gcc/obstack.c
index 408fa19..0a4cd30 100755
--- a/gcc/obstack.c
+++ b/gcc/obstack.c
@@ -30,7 +30,7 @@
/* Determine default alignment. */
struct fooalign {char x; double d;};
#define DEFAULT_ALIGNMENT \
- ((PTR_INT_TYPE) ((char *) &((struct fooalign *) 0)->d - (char *) 0))
+ ((ptrdiff_t) ((char *) &((struct fooalign *) 0)->d - (char *) 0))
/* If malloc were really smart, it would round addresses to DEFAULT_ALIGNMENT.
But in fact it might be less smart and round addresses to as much as
DEFAULT_ROUNDING. So we prepare for it to do that. */