From 467d3de2dea0cb50ab9b6f1a426486c57f64f1b6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 26 Aug 2025 20:19:39 +0900 Subject: refactor: remove unnecessary condition --- src/token.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/token.c') diff --git a/src/token.c b/src/token.c index 3ca34d8..40463cd 100644 --- a/src/token.c +++ b/src/token.c @@ -276,7 +276,7 @@ const char* token_stringify(Token* t) { sprintf(buf, "%d (%s)", t->value.integer, kind_str); return buf; } else if (k == TokenKind_other || k == TokenKind_character_constant || k == TokenKind_ident || - k == TokenKind_literal_int || k == TokenKind_literal_str) { + k == TokenKind_literal_str) { const char* kind_str = token_kind_stringify(k); char* buf = calloc(strlen(t->value.string) + strlen(kind_str) + 3 + 1, sizeof(char)); sprintf(buf, "%s (%s)", t->value.string, kind_str); -- cgit v1.2.3-70-g09d2