fix for edge case (running out of tokens while parsing assignment expression
This commit is contained in:
1 parent
b5652a4dad
commit
c0ea2ce3ff
1 file changed
+4
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user