Skip to content

Commit 003ce73

Browse files
committed
Fix assertion failure in delete_symbols()
1 parent de84898 commit 003ce73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/compiler/sc1.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -3822,8 +3822,10 @@ static void funcstub(int fnative)
38223822
} /* if */
38233823

38243824
if (tok==tOPERATOR) {
3825-
if (numdim!=0)
3825+
if (numdim!=0) {
38263826
error(10); /* invalid function or declaration */
3827+
numdim=0; /* ignore the array size specification */
3828+
} /* if */
38273829
opertok=operatorname(symbolname);
38283830
if (opertok==0)
38293831
return; /* error message already given */

0 commit comments

Comments
 (0)