Skip to content

Commit 8948f20

Browse files
committed
disable 239 for native functions
1 parent ffb161a commit 8948f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/compiler/sc3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,7 @@ static int nesting=0;
22152215
if (arg[argidx].numdim!=1) {
22162216
error(48); /* array dimensions must match */
22172217
} else {
2218-
if (lval.sym==NULL && (arg[argidx].usage & uCONST)==0)
2218+
if (lval.sym==NULL && (arg[argidx].usage & uCONST)==0 && (sym->usage & uNATIVE)==0)
22192219
error(239);
22202220
if (arg[argidx].dim[0]!=0) {
22212221
assert(arg[argidx].dim[0]>0);

0 commit comments

Comments
 (0)