Fix a bug where some leaf expressions are not properly marked

Signed-off-by: Gavin Howard <[email protected]>
This commit is contained in:
Gavin Howard 2022-07-12 14:13:41 -06:00
parent 2d76f225aa
commit 3a66b416bd
Signed by: gavin
GPG Key ID: C08038BDF280D33E
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ bc_parse_expr_status(BcParse* p, uint8_t flags, BcParseNext next);
static bool
bc_parse_inst_isLeaf(BcInst t)
{
return (t >= BC_INST_NUM && t <= BC_INST_MAXSCALE) ||
return (t >= BC_INST_NUM && t <= BC_INST_LEADING_ZERO) ||
#if BC_ENABLE_EXTRA_MATH
t == BC_INST_TRUNC ||
#endif // BC_ENABLE_EXTRA_MATH