diff options
author | DJ Delorie <dj@redhat.com> | 2011-10-22 01:35:29 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2011-10-22 01:35:29 +0000 |
commit | 006d5c8857785cb10f6172e0e3bd7ed7b5c73181 (patch) | |
tree | d0e8a4342a68407d3e3f6c6147f0a7b1995bf3b9 /include/obstack.h | |
parent | 2954ce4ce4e28ed30bf80429ebacc94558aade74 (diff) | |
download | gdb-006d5c8857785cb10f6172e0e3bd7ed7b5c73181.zip gdb-006d5c8857785cb10f6172e0e3bd7ed7b5c73181.tar.gz gdb-006d5c8857785cb10f6172e0e3bd7ed7b5c73181.tar.bz2 |
* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++
Diffstat (limited to 'include/obstack.h')
-rw-r--r-- | include/obstack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/obstack.h b/include/obstack.h index 4aec3a4..23487ba 100644 --- a/include/obstack.h +++ b/include/obstack.h @@ -532,9 +532,9 @@ __extension__ \ # define obstack_free(h,obj) \ ( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \ (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\ - ? (int) ((h)->next_free = (h)->object_base \ - = (h)->temp + (char *) (h)->chunk) \ - : (((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0), 0))) + ? (((h)->next_free = (h)->object_base \ + = (h)->temp + (char *) (h)->chunk), 0) \ + : ((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0))) #endif /* not __GNUC__ or not __STDC__ */ |