From 3706859c39e7f4d3adae8bc20c2f06eb481fd71d Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Sat, 3 Aug 2019 17:53:21 +0700 Subject: [PATCH] __emit: Use proper search criterion for global variables --- 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 dc702f6..cc70a26 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -6939,7 +6939,7 @@ static void emit_param_data(emit_outval *p) goto invalid_token; } /* if */ } else { - sym=findglb(str,sSTATIC); + sym=findglb(str,sSTATEVAR); if (sym==NULL) { error(17,str); /* undefined symbol */ return;