scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 3d0c95a32783e7bd937b0f81ada5a46ff7e5fcd8
parent 3d6a2a3efbf19ed320746f9abddfea8091616309
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Sun, 17 Nov 2019 17:51:20 +0100

Fix SCHAR_MIN in limits.h

Diffstat:
Minclude/bits/amd64/arch/limits.h | 2+-
Minclude/bits/arm32/arch/limits.h | 2+-
Minclude/bits/arm64/arch/limits.h | 2+-
Minclude/bits/i386/arch/limits.h | 2+-
Minclude/bits/z80/arch/limits.h | 2+-
5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/bits/amd64/arch/limits.h b/include/bits/amd64/arch/limits.h @@ -1,6 +1,6 @@ #define CHAR_BIT 8 #define SCHAR_MAX 0x7F -#define SCHAR_MIN (-SCHAR_MIN-1) +#define SCHAR_MIN (-SCHAR_MAX-1) #define CHAR_MAX 0x7F #define CHAR_MIN (-CHAR_MAX-1) #define UCHAR_MAX 0xFF diff --git a/include/bits/arm32/arch/limits.h b/include/bits/arm32/arch/limits.h @@ -1,6 +1,6 @@ #define CHAR_BIT 8 #define SCHAR_MAX 0x7F -#define SCHAR_MIN (-SCHAR_MIN - 1) +#define SCHAR_MIN (-SCHAR_MAX - 1) #define CHAR_MAX 0x7F #define CHAR_MIN (-CHAR_MAX - 1) #define UCHAR_MAX 0xFF diff --git a/include/bits/arm64/arch/limits.h b/include/bits/arm64/arch/limits.h @@ -1,6 +1,6 @@ #define CHAR_BIT 8 #define SCHAR_MAX 0x7F -#define SCHAR_MIN (-SCHAR_MIN - 1) +#define SCHAR_MIN (-SCHAR_MAX - 1) #define CHAR_MAX 0x7F #define CHAR_MIN (-CHAR_MAX - 1) #define UCHAR_MAX 0xFF diff --git a/include/bits/i386/arch/limits.h b/include/bits/i386/arch/limits.h @@ -1,6 +1,6 @@ #define CHAR_BIT 8 #define SCHAR_MAX 0x7F -#define SCHAR_MIN (-SCHAR_MIN-1) +#define SCHAR_MIN (-SCHAR_MAX-1) #define CHAR_MAX 0x7F #define CHAR_MIN (-CHAR_MAX-1) #define UCHAR_MAX 0xFF diff --git a/include/bits/z80/arch/limits.h b/include/bits/z80/arch/limits.h @@ -1,6 +1,6 @@ #define CHAR_BIT 8 #define SCHAR_MAX 0x7F -#define SCHAR_MIN (-SCHAR_MIN-1) +#define SCHAR_MIN (-SCHAR_MAX-1) #define CHAR_MAX 0xFF #define CHAR_MIN 0 #define UCHAR_MAX 0xFF