From ccb8980f658abb8b53959c70051c4601465bc34a Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Sun, 23 Jun 2019 20:02:49 +0700 Subject: [PATCH] Fix 'glb_declared==0' assertion failure --- 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 2fe3934..8b9319d 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -685,8 +685,8 @@ int pc_compile(int argc, char *argv[]) sc_status=statSECOND; else sc_status=statWRITE; /* allow to write --this variable was reset by resetglobals() */ - setstringconstants(); writeleader(&glbtab); + setstringconstants(); setfileconst(inpfname); insert_dbgfile(inpfname); if (!strempty(incfname)) {