mirror of
https://github.com/Ed94/gencpp.git
synced 2025-02-23 21:58:37 -08:00
fix for edge case (running out of tokens while parsing assignment expression
This commit is contained in:
parent
b5652a4dad
commit
c0ea2ce3ff
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user