Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2011-10-22 05:35:29 +0400
committerDJ Delorie <dj@redhat.com>2011-10-22 05:35:29 +0400
commitbdea9e5fe8cb19d89015d8a6543ecab4b9e76a01 (patch)
treeab4961af3d0a707c2e4243d151538575f4753bb2 /include/obstack.h
parent22e671336e8db5fe4f026d1c0c8eb98b4e7d728f (diff)
* 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/obstack.h b/include/obstack.h
index 4aec3a484..23487ba4f 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__ */