summaryrefslogtreecommitdiff
path: root/libcpp/system.h
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-07 09:11:17 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-07 09:11:17 +0000
commit8df4088db74e1f8097d26d2c87f4929c3c50bd22 (patch)
tree8d44bbfc74320d6a43c2da536d8329570f75a99a /libcpp/system.h
parente263bb507494fa3f5fdc360af8cee84e3698fed9 (diff)
downloadgcc-8df4088db74e1f8097d26d2c87f4929c3c50bd22.tar.gz
* system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
* system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/system.h')
-rw-r--r--libcpp/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/system.h b/libcpp/system.h
index b18d658a9a2..a2e8c26b0b0 100644
--- a/libcpp/system.h
+++ b/libcpp/system.h
@@ -230,7 +230,7 @@ extern int errno;
/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
It is necessary at least when t == time_t. */
#define INTTYPE_MINIMUM(t) ((t) (INTTYPE_SIGNED (t) \
- ? ~ (t) 0 << (sizeof(t) * CHAR_BIT - 1) : (t) 0))
+ ? (t) 1 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
#define INTTYPE_MAXIMUM(t) ((t) (~ (t) 0 - INTTYPE_MINIMUM (t)))
/* Use that infrastructure to provide a few constants. */