]> granicus.if.org Git - musl/commitdiff
use signed char rather than plain char for int8_t
authorRich Felker <dalias@aerifal.cx>
Tue, 24 Apr 2012 22:06:56 +0000 (18:06 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 24 Apr 2012 22:06:56 +0000 (18:06 -0400)
otherwise this BADLY breaks if -funsigned-char is passed to gcc

arch/arm/bits/alltypes.h.sh
arch/i386/bits/alltypes.h.sh
arch/x86_64/bits/alltypes.h.sh

index ddc5c06fd27c10dd38494fa9a0812e95b538c5a7..4ba3d81caf825716978d744869893a2885bc13c0 100755 (executable)
@@ -29,10 +29,10 @@ TYPEDEF int wint_t;
 TYPEDEF long wctrans_t;
 TYPEDEF long wctype_t;
 
-TYPEDEF char      int8_t;
-TYPEDEF short     int16_t;
-TYPEDEF int       int32_t;
-TYPEDEF long long int64_t;
+TYPEDEF signed char int8_t;
+TYPEDEF short       int16_t;
+TYPEDEF int         int32_t;
+TYPEDEF long long   int64_t;
 
 TYPEDEF unsigned char      uint8_t;
 TYPEDEF unsigned short     uint16_t;
index b1505a11169545f668e0d7a15dfb4b9a9276ab51..3735d963dabdd4fa513410aac7b20db9e1ccc49f 100755 (executable)
@@ -37,10 +37,10 @@ TYPEDEF long wint_t;
 TYPEDEF long wctrans_t;
 TYPEDEF long wctype_t;
 
-TYPEDEF char      int8_t;
-TYPEDEF short     int16_t;
-TYPEDEF int       int32_t;
-TYPEDEF long long int64_t;
+TYPEDEF signed char int8_t;
+TYPEDEF short       int16_t;
+TYPEDEF int         int32_t;
+TYPEDEF long long   int64_t;
 
 TYPEDEF unsigned char      uint8_t;
 TYPEDEF unsigned short     uint16_t;
index 929a0f67a716b34a1c01fc34546d322872dec1cf..e19a4700e7ca3a9d19604bdb7623bd682a9a2b5c 100755 (executable)
@@ -28,10 +28,10 @@ TYPEDEF int wint_t;
 TYPEDEF int wctrans_t;
 TYPEDEF int wctype_t;
 
-TYPEDEF char      int8_t;
-TYPEDEF short     int16_t;
-TYPEDEF int       int32_t;
-TYPEDEF long      int64_t;
+TYPEDEF signed char int8_t;
+TYPEDEF short       int16_t;
+TYPEDEF int         int32_t;
+TYPEDEF long        int64_t;
 
 TYPEDEF unsigned char      uint8_t;
 TYPEDEF unsigned short     uint16_t;