mirror of
https://github.com/frida/tinycc
synced 2024-11-24 08:39:37 +03:00
Fix type_to_str test for unsigned int
This commit is contained in:
parent
fdb3b10d06
commit
33cea54dc7
2
tccgen.c
2
tccgen.c
@ -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 ");
|
||||
|
Loading…
Reference in New Issue
Block a user