From a272a7e43e963b16418c5dd4d3e99b4c7e3d937e Mon Sep 17 00:00:00 2001 From: Zeex Date: Sun, 16 Mar 2014 12:40:34 +0700 Subject: [PATCH] Fix faulty assert It is allowed for symbol names to be up to sNAMEMAX characters but the assert() restricted them to sNAMEMAX-1 characters, so it would fail for any long enough name. Ran across this investigating #21. --- 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 b4bb676..7dc3cf6 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -4737,7 +4737,7 @@ static constvalue *insert_constval(constvalue *prev,constvalue *next,const char error(103); /* insufficient memory (fatal error) */ memset(cur,0,sizeof(constvalue)); if (name!=NULL) { - assert(strlen(name)name,name); } /* if */ cur->value=val;