diff options
author | Adrian Thurston <thurston@colm.net> | 2021-10-30 09:08:34 -0700 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2021-10-30 09:08:34 -0700 |
commit | b0f7f10ff7c7efe384d9f98e4d921d8ba74257ad (patch) | |
tree | fdc68149c325f6dec4f0f72f96dc9c9221c72d84 | |
parent | 70c547e320477a356178c39483afe5c8fa6248d6 (diff) | |
download | colm-b0f7f10ff7c7efe384d9f98e4d921d8ba74257ad.tar.gz |
use the 'signed' prefix when specifying the size of the signed types
-rw-r--r-- | src/libfsm/common.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libfsm/common.cc b/src/libfsm/common.cc index 32a86c83..2d89dea8 100644 --- a/src/libfsm/common.cc +++ b/src/libfsm/common.cc @@ -42,16 +42,16 @@ const char *defaultOutFnC( const char *inputFileName ) HostType hostTypesC[] = { { "char", 0, "char", (CHAR_MIN != 0), true, false, CHAR_MIN, CHAR_MAX, 0, 0, sizeof(char) }, - { "signed", "char", "char", true, true, false, SCHAR_MIN, SCHAR_MAX, 0, 0, sizeof(char) }, + { "signed", "char", "char", true, true, false, SCHAR_MIN, SCHAR_MAX, 0, 0, sizeof(signed 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) }, + { "signed", "short", "short", true, true, false, SHRT_MIN, SHRT_MAX, 0, 0, sizeof(signed short) }, { "unsigned", "short", "ushort", false, true, false, 0, 0, 0, USHRT_MAX, sizeof(unsigned short) }, { "int", 0, "int", true, true, false, INT_MIN, INT_MAX, 0, 0, sizeof(int) }, - { "signed", "int", "int", true, true, false, INT_MIN, INT_MAX, 0, 0, sizeof(int) }, + { "signed", "int", "int", true, true, false, INT_MIN, INT_MAX, 0, 0, sizeof(signed int) }, { "unsigned", "int", "uint", false, true, false, 0, 0, 0, UINT_MAX, sizeof(unsigned int) }, { "long", 0, "long", true, true, false, LONG_MIN, LONG_MAX, 0, 0, sizeof(long) }, - { "signed", "long", "long", true, true, false, LONG_MIN, LONG_MAX, 0, 0, sizeof(long) }, + { "signed", "long", "long", true, true, false, LONG_MIN, LONG_MAX, 0, 0, sizeof(signed long) }, { "unsigned", "long", "ulong", false, true, false, 0, 0, 0, ULONG_MAX, sizeof(unsigned long) }, }; |