From 33cea54dc7b18e865c355dc1a7fee3a08a63d587 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 9 Mar 2014 13:32:24 +0800 Subject: [PATCH] Fix type_to_str test for unsigned int --- tccgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index d8e4614e..e12501de 100644 --- a/tccgen.c +++ b/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 ");