* obstack.h [!GNUC] (obstack_free): Avoid cast to int.

* ansidecl.h (ENUM_BITFIELD): Always use enum in C++
This commit is contained in:
DJ Delorie
2011-10-22 01:35:29 +00:00
parent 22e671336e
commit bdea9e5fe8
3 changed files with 15 additions and 5 deletions

View File

@ -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__ */