mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +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 ");
|
pstrcat(buf, buf_size, "const ");
|
||||||
if (t & VT_VOLATILE)
|
if (t & VT_VOLATILE)
|
||||||
pstrcat(buf, buf_size, "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 ");
|
pstrcat(buf, buf_size, "unsigned ");
|
||||||
else if (t & VT_DEFSIGN)
|
else if (t & VT_DEFSIGN)
|
||||||
pstrcat(buf, buf_size, "signed ");
|
pstrcat(buf, buf_size, "signed ");
|
||||||
|
Loading…
Reference in New Issue
Block a user