disable 239 for native functions

This commit is contained in:
Yashas 2018-06-24 10:20:30 +05:30 committed by YashasSamaga
parent ffb161ad95
commit 8948f207ea

View File

@ -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);