Skip to content
Snippets Groups Projects
Commit 8ed3549c authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Bug in filter on mappings fixed.

Rev: lib/modules/Array.pmod:1.7
parent 9106ac7c
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ mixed filter(mixed arr, mixed fun, mixed ... args) ...@@ -42,7 +42,7 @@ mixed filter(mixed arr, mixed fun, mixed ... args)
r=([]); r=([]);
for(e=0;e<sizeof(ret);e++) if(ret[e]) r[i[e]]=v[e]; for(e=0;e<sizeof(ret);e++) if(ret[e]) r[i[e]]=v[e];
return ret; return r;
}else{ }else{
int d; int d;
ret=map(arr,fun,@args); ret=map(arr,fun,@args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment