aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/token.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/token.c')
-rw-r--r--src/token.c2
1 files changed, 1 insertions, 1 deletions
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);