aboutsummaryrefslogtreecommitdiff
path: root/include/obstack.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-07-13 21:10:23 +0000
committerDJ Delorie <dj@redhat.com>2004-07-13 21:10:23 +0000
commit7ab9a76eac9d4999de4f37a2ce92bd324450e4d7 (patch)
tree2d5644431eccf85eac303ea0728d6a29bf5a167d /include/obstack.h
parentc99b813881319e6820bb60d837515b5df9837e2c (diff)
downloadgdb-7ab9a76eac9d4999de4f37a2ce92bd324450e4d7.zip
gdb-7ab9a76eac9d4999de4f37a2ce92bd324450e4d7.tar.gz
gdb-7ab9a76eac9d4999de4f37a2ce92bd324450e4d7.tar.bz2
merge from gcc
Diffstat (limited to 'include/obstack.h')
-rw-r--r--include/obstack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/obstack.h b/include/obstack.h
index 5496ff2..007853e 100644
--- a/include/obstack.h
+++ b/include/obstack.h
@@ -494,9 +494,9 @@ __extension__ \
# define obstack_free(OBSTACK, OBJ) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
- void *__obj = (OBJ); \
+ void *__obj = (void *) (OBJ); \
if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \
- __o->next_free = __o->object_base = __obj; \
+ __o->next_free = __o->object_base = (char *) __obj; \
else (obstack_free) (__o, __obj); })
#else /* not __GNUC__ or not __STDC__ */