From 3189cfe57c6617ffe205bfc56791df6dd1d62ba7 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 25 Aug 2016 13:49:29 +0200 Subject: Move memory allocation to separate module --- compiler/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/print.c') diff --git a/compiler/print.c b/compiler/print.c index c18d337..a71e71f 100644 --- a/compiler/print.c +++ b/compiler/print.c @@ -16,7 +16,7 @@ void print_token(token* tk) { case TOKEN_EQUALS: c = '='; break; case TOKEN_COMMA: c = ','; break; case TOKEN_NAME: - printf("%s", tk->var); + printf("%s", (char*) tk->var); return; case TOKEN_INT: printf("%d", *((int*) tk->var)); -- cgit v1.2.3