Array: Fixed some warnings.

parent 8c5a893b
...@@ -552,11 +552,14 @@ mixed sum(array a) ...@@ -552,11 +552,14 @@ mixed sum(array a)
return `+(@a); return `+(@a);
else else
{ {
mixed mem=`+(@a[..999]); int|float|array|mapping|multiset|object|string mem =
[int|float|array|mapping|multiset|object|string]`+(@a[..999]);
int j=1000; int j=1000;
array v; array v;
while (sizeof(v=a[j..j+999])) while (sizeof(v=a[j..j+999])) {
mem=`+(mem,@v),j+=1000; mem = [int|float|array|mapping|multiset|object|string]`+(mem,@v);
j+=1000;
}
return mem; return mem;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment