summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/limits/CHAR_MAX.c6
-rw-r--r--src/limits/CHAR_MIN.c6
2 files changed, 6 insertions, 6 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 **/
diff --git a/src/limits/CHAR_MIN.c b/src/limits/CHAR_MIN.c
index 8db46640..791cbbc2 100644
--- a/src/limits/CHAR_MIN.c
+++ b/src/limits/CHAR_MIN.c
@@ -1,8 +1,8 @@
#include <limits.h>
-#ifdef __CHAR_IS_SIGNED
-#define CHAR_MIN (-128)
-#else
+#ifdef __CHAR_IS_UNSIGNED__
#define CHAR_MIN (0)
+#else
+#define CHAR_MIN (-128)
#endif
/** char minimum **/