__emit: Use proper search criterion for global variables

This commit is contained in:
Daniel_Cortez 2019-08-03 17:53:21 +07:00 committed by Stanislav Gromov
parent b849d61487
commit 3706859c39

View File

@ -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;