Array: Fixed some warnings.

parent 8c5a893b
......@@ -552,11 +552,14 @@ mixed sum(array a)
return `+(@a);
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;
array v;
while (sizeof(v=a[j..j+999]))
mem=`+(mem,@v),j+=1000;
while (sizeof(v=a[j..j+999])) {
mem = [int|float|array|mapping|multiset|object|string]`+(mem,@v);
j+=1000;
}
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