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,8 +1365,10 @@ Code parse_assignment_expression()
|
|||||||
eat( currtok.Type );
|
eat( currtok.Type );
|
||||||
}
|
}
|
||||||
|
|
||||||
expr_tok.Text.Len = ( ( sptr )currtok.Text.Ptr + currtok.Text.Len ) - ( sptr )expr_tok.Text.Ptr - 1;
|
if (left) {
|
||||||
expr = untyped_str( expr_tok.Text );
|
expr_tok.Text.Len = ( ( sptr )currtok.Text.Ptr + currtok.Text.Len ) - ( sptr )expr_tok.Text.Ptr - 1;
|
||||||
|
}
|
||||||
|
expr = untyped_str( expr_tok.Text );
|
||||||
// = <Expression>
|
// = <Expression>
|
||||||
return expr;
|
return expr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user