From 14228a1cea48a85ea5c7cf8c24c576e76500e474 Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Sun, 29 Sep 2019 13:42:04 +0700 Subject: [PATCH] Fix assertion failure with a state variable --- 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 d6f9a21..a36674a 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -2078,7 +2078,7 @@ static void declglb(char *firstname,int firsttag,int fpublic,int fstatic,int fst */ assert(sym==NULL || sym->states==NULL && sc_curstates==0 - || sym->states!=NULL && sym->next!=NULL && sym->states->first->index==sc_curstates); + || sym->states!=NULL && sym->states->first!=NULL && sym->states->first->index==sc_curstates); /* a state variable may only have a single id in its list (so either this * variable has no states, or it has a single list) */