History

Fix type_to_str test for unsigned int

Thomas Preud'homme committed 12 years ago

Commit 33cea541 parent fdb3b101 file · +1 −1Browse files

Unified · Split

tccgen.c+1−1
@@ -2268,7 +2268,7 @@ static void type_to_str(char *buf, int buf_size, · 2267 unmodified lines
22682268 pstrcat(buf, buf_size, "const ");
22692269 if (t & VT_VOLATILE)
22702270 pstrcat(buf, buf_size, "volatile ");
2271− if (t & (VT_DEFSIGN | VT_UNSIGNED))
2271+ if ((t & (VT_DEFSIGN | VT_UNSIGNED)) == (VT_DEFSIGN | VT_UNSIGNED))
22722272 pstrcat(buf, buf_size, "unsigned ");
22732273 else if (t & VT_DEFSIGN)
22742274 pstrcat(buf, buf_size, "signed ");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t