From 6b17d4ffbea91431d5a032e5f19dd56f4acd7b20 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 28 Feb 2019 16:16:49 -0500 Subject: default to unsigned --- src/limits/CHAR_MAX.c | 6 +++--- src/limits/CHAR_MIN.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 -#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 -#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 **/ -- cgit v1.2.1