better _Bool lvalue support
This commit is contained in:
parent
eed54d6bfb
commit
60b9a1aa38
1 changed files with 1 additions and 1 deletions
2
tcc.c
2
tcc.c
|
|
@ -6312,7 +6312,7 @@ static int lvalue_type(int t)
|
||||||
int bt, r;
|
int bt, r;
|
||||||
r = VT_LVAL;
|
r = VT_LVAL;
|
||||||
bt = t & VT_BTYPE;
|
bt = t & VT_BTYPE;
|
||||||
if (bt == VT_BYTE)
|
if (bt == VT_BYTE || bt == VT_BOOL)
|
||||||
r |= VT_LVAL_BYTE;
|
r |= VT_LVAL_BYTE;
|
||||||
else if (bt == VT_SHORT)
|
else if (bt == VT_SHORT)
|
||||||
r |= VT_LVAL_SHORT;
|
r |= VT_LVAL_SHORT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue