A handful of int-to-bool conversions

This commit is contained in:
Tim Wojtulewicz 2023-07-06 14:03:23 -07:00
parent 90d0bc64fa
commit cd7ebdb2ed
5 changed files with 21 additions and 20 deletions

View file

@ -2033,7 +2033,7 @@ case_type_list:
case_type:
TOK_TYPE type
{
$$ = new ID(0, SCOPE_FUNCTION, 0);
$$ = new ID(0, SCOPE_FUNCTION, false);
$$->SetType({AdoptRef{}, $2});
}
@ -2164,17 +2164,17 @@ local_id:
;
global_id:
{ resolving_global_ID = 1; } global_or_event_id
{ resolving_global_ID = true; } global_or_event_id
{ $$ = $2; }
;
def_global_id:
{ defining_global_ID = 1; } global_id { defining_global_ID = 0; }
{ defining_global_ID = true; } global_id { defining_global_ID = false; }
{ $$ = $2; }
;
event_id:
{ resolving_global_ID = 0; } global_or_event_id
{ resolving_global_ID = false; } global_or_event_id
{ $$ = $2; }
;