From 85bc8baac9a16ba74116be18b577b840fcaa499d Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Mon, 7 Sep 2015 09:11:17 +0000 Subject: system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning. * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning. * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning. From-SVN: r227516 --- libcpp/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcpp/system.h') diff --git a/libcpp/system.h b/libcpp/system.h index b18d658..a2e8c26 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. */ -- cgit v1.1