From c14186a48f56a08f88cb3a3891e9faa9a07ed08d Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Mon, 13 Nov 2017 23:18:43 +0700 Subject: [PATCH] emit/__emit: Fix 'need_token' argument being unused in emit_invalid_token() --- source/compiler/sc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 7076f58..bf4db2a 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -5837,7 +5837,7 @@ static void emit_invalid_token(int need_token,int current_token) sprintf(s,"%c",(char)current_token); else strcpy(s,sc_tokens[current_token-tFIRST]); - error(1,sc_tokens[tSYMBOL-tFIRST],s); + error(1,sc_tokens[need_token-tFIRST],s); } static void emit_param_num(ucell *p,int size)