Refined the encoding some more.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user