diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2014-03-09 13:32:24 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2014-03-09 13:32:40 +0800 |
| commit | 33cea54dc7b18e865c355dc1a7fee3a08a63d587 (patch) | |
| tree | e1ff8eb818edb069a120d608681007d611eaa6f5 /tccgen.c | |
| parent | fdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1 (diff) | |
| download | tinycc-33cea54dc7b18e865c355dc1a7fee3a08a63d587.tar.gz tinycc-33cea54dc7b18e865c355dc1a7fee3a08a63d587.tar.bz2 | |
Fix type_to_str test for unsigned int
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2268,7 +2268,7 @@ static void type_to_str(char *buf, int buf_size, pstrcat(buf, buf_size, "const "); if (t & VT_VOLATILE) pstrcat(buf, buf_size, "volatile "); - if (t & (VT_DEFSIGN | VT_UNSIGNED)) + if ((t & (VT_DEFSIGN | VT_UNSIGNED)) == (VT_DEFSIGN | VT_UNSIGNED)) pstrcat(buf, buf_size, "unsigned "); else if (t & VT_DEFSIGN) pstrcat(buf, buf_size, "signed "); |
