summaryrefslogtreecommitdiffstats
path: root/include/obstack.h
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-22 01:35:29 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-22 01:35:29 +0000
commitb103fef54c6294a3bb51b8613e7a914c489e7098 (patch)
tree9a220a1521636f19743599c3ac312bb94cc39c8d /include/obstack.h
parentc81aeb2f029c23f1e3f5ec97be9de814c17c0292 (diff)
downloadppe42-gcc-b103fef54c6294a3bb51b8613e7a914c489e7098.tar.gz
ppe42-gcc-b103fef54c6294a3bb51b8613e7a914c489e7098.zip
* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180321 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/obstack.h')
-rw-r--r--include/obstack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/obstack.h b/include/obstack.h
index 4aec3a484e2..23487ba4f4a 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__ */
OpenPOWER on IntegriCloud