Skip to content

Commit

Permalink
Fix bug in evaluating bool, char and string literals
Browse files Browse the repository at this point in the history
- The parser was setting the node mask to IDL_ANY in stead of the
  correct mask for bool, char and string literals

Signed-off-by: Martijn Reicher <martijn.reicher@adlinktech.com>
  • Loading branch information
reicheratwork authored and eboasson committed Oct 7, 2021
1 parent cf16290 commit 040ab05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idl/src/expression.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ idl_evaluate(
}
}

if ((ret = idl_create_literal(pstate, idl_location(const_expr), type, nodep)))
if ((ret = idl_create_literal(pstate, idl_location(const_expr), implicit, nodep)))
return ret;
(*((idl_literal_t **)nodep))->value = temporary.value;
done:
Expand Down

0 comments on commit 040ab05

Please sign in to comment.