fix for edge case (running out of tokens while parsing assignment expression

This commit is contained in:
Edward R. Gonzalez 2025-02-04 22:05:24 -05:00
parent b5652a4dad
commit c0ea2ce3ff

View File

@ -1365,7 +1365,9 @@ Code parse_assignment_expression()
eat( currtok.Type );
}
if (left) {
expr_tok.Text.Len = ( ( sptr )currtok.Text.Ptr + currtok.Text.Len ) - ( sptr )expr_tok.Text.Ptr - 1;
}
expr = untyped_str( expr_tok.Text );
// = <Expression>
return expr;