Fix types of CHAR_MAX and UCHAR_MAX in <limits.h>.

These should be of type int (not unsigned int), since that is what char and unsigned char now promote to.
This commit is contained in:
Stephen Heumann 2017-10-21 20:47:34 -05:00
parent 8be021eab1
commit f3431f8771
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#define __limits__
#define CHAR_BIT 8
#define CHAR_MAX 255u
#define CHAR_MAX 255
#define CHAR_MIN 0
#define SHRT_MAX 32767
#define SHRT_MIN (-32767-1)
@ -25,7 +25,7 @@
#define MB_LEN_MAX 1
#define SCHAR_MAX 127
#define SCHAR_MIN (-128)
#define UCHAR_MAX 255u
#define UCHAR_MAX 255
#define UINT_MAX 65535u
#define ULONG_MAX 4294967295u
#define USHRT_MAX 65535u