Fixed a bug in the tokenizer's 'replace_variables' method that would cause the new token list to hold references to objects in the provided token list.

This commit is contained in:
2020-04-14 11:26:38 -05:00
parent c75905d13c
commit 20e114e33d
+1 -1
View File
@@ -79,6 +79,6 @@ def replace_variables(tokens, new_constants):
if t.type == token.TokenType.variable:
newTokenList.append(token.CToken(new_constants.pop(0), token.TokenType.constant))
else:
newTokenList.append(t)
newTokenList.append(token.CToken(t.value, t.type))
return newTokenList