summaryrefslogtreecommitdiff
path: root/src/limits/CHAR_MIN.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-28 16:16:49 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-28 16:16:49 -0500
commit6b17d4ffbea91431d5a032e5f19dd56f4acd7b20 (patch)
tree3c8b6b3b8a624febb00ec3bee3203a9a1f45d1cf /src/limits/CHAR_MIN.c
parente6dfff4a2b3a230ff017b637e6f5446fff72dace (diff)
default to unsigned
Diffstat (limited to 'src/limits/CHAR_MIN.c')
-rw-r--r--src/limits/CHAR_MIN.c6
1 files changed, 3 insertions, 3 deletions
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 **/