Skip to content

Commit

Permalink
disable 239 for native functions
Browse files Browse the repository at this point in the history
  • Loading branch information
YashasSamaga committed Jul 8, 2018
1 parent ffb161a commit 8948f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/compiler/sc3.c
Expand Up @@ -2215,7 +2215,7 @@ static int nesting=0;
if (arg[argidx].numdim!=1) {
error(48); /* array dimensions must match */
} else {
if (lval.sym==NULL && (arg[argidx].usage & uCONST)==0)
if (lval.sym==NULL && (arg[argidx].usage & uCONST)==0 && (sym->usage & uNATIVE)==0)
error(239);
if (arg[argidx].dim[0]!=0) {
assert(arg[argidx].dim[0]>0);
Expand Down

0 comments on commit 8948f20

Please sign in to comment.