From ab0b2cac2e8793687d7f2b05f9402a24013ad1ed Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 3 Jun 2019 06:00:27 +0000 Subject: [PATCH] fix signed char type to be explicitly signed --- litex/soc/software/include/base/stdint.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litex/soc/software/include/base/stdint.h b/litex/soc/software/include/base/stdint.h index 6b81cd1b..594d9034 100644 --- a/litex/soc/software/include/base/stdint.h +++ b/litex/soc/software/include/base/stdint.h @@ -16,15 +16,15 @@ typedef unsigned char uint8_t; typedef long long int64_t; typedef int int32_t; typedef short int16_t; -typedef char int8_t; +typedef signed char int8_t; -typedef char int_least8_t; +typedef signed char int_least8_t; typedef unsigned char uint_least8_t; -typedef short int_least16_t; +typedef signed short int_least16_t; typedef unsigned short uint_least16_t; -typedef int int_least32_t; +typedef signed int int_least32_t; typedef unsigned int uint_least32_t; -typedef long long int_least64_t; +typedef signed long long int_least64_t; typedef unsigned long long uint_least64_t; #define __int_c_join(a, b) a ## b -- 2.30.2