mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-31 06:50:53 -07:00 
			
		
		
		
	fix for edge case (running out of tokens while parsing assignment expression
This commit is contained in:
		| @@ -1365,8 +1365,10 @@ Code parse_assignment_expression() | ||||
| 		eat( currtok.Type ); | ||||
| 	} | ||||
|  | ||||
| 	expr_tok.Text.Len = ( ( sptr )currtok.Text.Ptr + currtok.Text.Len ) - ( sptr )expr_tok.Text.Ptr - 1; | ||||
| 	expr              = untyped_str( expr_tok.Text ); | ||||
| 	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; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user