aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2015-10-06 19:12:12 +0000
committerAaron Watry <awatry@gmail.com>2015-10-06 19:12:12 +0000
commit23faa5a1f99a096901af9f9229fc70d4f0eb9750 (patch)
treead6661ba34ec93e69133127da6785a45c96d8105
parent017bfee4560ccd5d9b9f65f5756be6f45f32252e (diff)
downloadllvm-23faa5a1f99a096901af9f9229fc70d4f0eb9750.zip
llvm-23faa5a1f99a096901af9f9229fc70d4f0eb9750.tar.gz
llvm-23faa5a1f99a096901af9f9229fc70d4f0eb9750.tar.bz2
integer: remove explicit casts from _MIN definitions
The spec says (section 6.12.3, CL version 1.2): The macro names given in the following list must use the values specified. The values shall all be constant expressions suitable for use in #if preprocessing directives. This commit addresses the second part of that statement. Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <tom@stellard.net> CC: Moritz Pflanzer <moritz.pflanzer14@imperial.ac.uk> CC: Serge Martin <edb+libclc@sigluy.net> llvm-svn: 249445
-rw-r--r--libclc/generic/include/clc/integer/definitions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libclc/generic/include/clc/integer/definitions.h b/libclc/generic/include/clc/integer/definitions.h
index 89de232..0079c30 100644
--- a/libclc/generic/include/clc/integer/definitions.h
+++ b/libclc/generic/include/clc/integer/definitions.h
@@ -1,14 +1,14 @@
#define CHAR_BIT 8
#define INT_MAX 2147483647
-#define INT_MIN ((int)(-2147483647 - 1))
+#define INT_MIN (-2147483647 - 1)
#define LONG_MAX 0x7fffffffffffffffL
#define LONG_MIN (-0x7fffffffffffffffL - 1)
#define CHAR_MAX SCHAR_MAX
#define CHAR_MIN SCHAR_MIN
#define SCHAR_MAX 127
-#define SCHAR_MIN ((char)(-127 - 1))
+#define SCHAR_MIN (-127 - 1)
#define SHRT_MAX 32767
-#define SHRT_MIN ((short)(-32767 - 1))
+#define SHRT_MIN (-32767 - 1)
#define UCHAR_MAX 255
#define USHRT_MAX 65535
#define UINT_MAX 0xffffffff