- Backport patches to fix signed/unsigned char usage on Arm: * e1f1c598.patch * 6895f7d1.patch * 9f0ac141.patch OBS-URL: https://build.opensuse.org/request/show/987914 OBS-URL: https://build.opensuse.org/package/show/devel:tools/colm?expand=0&rev=27
24 lines
1.3 KiB
Diff
24 lines
1.3 KiB
Diff
From 6895f7d153500a18f08fa9e64972799763c775e6 Mon Sep 17 00:00:00 2001
|
|
From: Adrian Thurston <thurston@colm.net>
|
|
Date: Sat, 6 Nov 2021 12:09:17 -0700
|
|
Subject: [PATCH] C codegen: use SCHAR_MIN and SCHAR_MAX for signed char host
|
|
type
|
|
|
|
---
|
|
src/libfsm/common.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libfsm/common.cc b/src/libfsm/common.cc
|
|
index b46cc571..349d06f7 100644
|
|
--- a/src/libfsm/common.cc
|
|
+++ b/src/libfsm/common.cc
|
|
@@ -42,7 +42,7 @@ const char *defaultOutFnC( const char *inputFileName )
|
|
HostType hostTypesC[] =
|
|
{
|
|
{ "char", 0, "char", (CHAR_MIN != 0), true, false, SCHAR_MIN, SCHAR_MAX, 0, UCHAR_MAX, sizeof(char) },
|
|
- { "signed", "char", "char", true, true, false, CHAR_MIN, CHAR_MAX, 0, 0, sizeof(char) },
|
|
+ { "signed", "char", "char", true, true, false, SCHAR_MIN, SCHAR_MAX, 0, 0, sizeof(char) },
|
|
{ "unsigned", "char", "uchar", false, true, false, 0, 0, 0, UCHAR_MAX, sizeof(unsigned char) },
|
|
{ "short", 0, "short", true, true, false, SHRT_MIN, SHRT_MAX, 0, 0, sizeof(short) },
|
|
{ "signed", "short", "short", true, true, false, SHRT_MIN, SHRT_MAX, 0, 0, sizeof(short) },
|