Refined the encoding some more.

This commit is contained in:
2022-08-26 19:00:37 +00:00
parent eb5e2c506e
commit e4a191a17e
3 changed files with 25 additions and 52 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ TokenClass GetTokenClass(TokenType type) {
void FreeToken(Token* token) {
if (!token) return;
if (token->value && token->type >= STRING) free(token->value);
if (token->value && (token->type >= STRING || token->type == NUMBER)) free(token->value);
free(token);
}