Fix bool -> byte coercion logic
Change-Id: Iab6dba9484fb5ddb8a8d4efcd46d7b9c8d1acca8
This commit is contained in:
parent
20b77f616a
commit
6189ffc7ed
1 changed files with 1 additions and 1 deletions
|
@ -667,7 +667,7 @@ coerce_value(AstExprValue *ev, ExprType t)
|
|||
ev->et = ET_byte;
|
||||
return ev;
|
||||
case ET_boolean:
|
||||
ev->u.byval = (ev->u.bval == false) ? 1 : 0;
|
||||
ev->u.byval = ev->u.bval ? 1 : 0;
|
||||
ev->et = ET_byte;
|
||||
return ev;
|
||||
case ET_float:
|
||||
|
|
Loading…
Reference in a new issue