better _Bool lvalue support

This commit is contained in:
bellard 2003-04-13 14:11:34 +00:00
parent eed54d6bfb
commit 60b9a1aa38

2
tcc.c
View File

@ -6312,7 +6312,7 @@ static int lvalue_type(int t)
int bt, r;
r = VT_LVAL;
bt = t & VT_BTYPE;
if (bt == VT_BYTE)
if (bt == VT_BYTE || bt == VT_BOOL)
r |= VT_LVAL_BYTE;
else if (bt == VT_SHORT)
r |= VT_LVAL_SHORT;