summaryrefslogtreecommitdiff
path: root/src/limits/CHAR_MAX.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/limits/CHAR_MAX.c')
-rw-r--r--src/limits/CHAR_MAX.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/limits/CHAR_MAX.c b/src/limits/CHAR_MAX.c
index e746e32e..fc98c91b 100644
--- a/src/limits/CHAR_MAX.c
+++ b/src/limits/CHAR_MAX.c
@@ -1,8 +1,8 @@
#include <limits.h>
-#ifdef __CHAR_IS_SIGNED
-#define CHAR_MAX (127)
-#else
+#ifdef __CHAR_IS_UNSIGNED__
#define CHAR_MAX (255)
+#else
+#define CHAR_MAX (127)
#endif
/** char maximum **/