Warning! ArrayInitialize is not working properly on build 5100

 

I have a program that was working fine before update. After recompile on version 5100 it behaved as if never there was a 0 in the array. The problem was ArrayInitialize function. After replace it by ArrayFill it works correctly again. Hope it will be fixed in next updates because many indicators and program uses ArrayInitialize.

Here is my code block before version 5100

   long buys[], sells[];
   ArrayResize(buys, count);
   ArrayResize(sells, count);
   ArrayInitialize(buys, 0L);
   ArrayInitialize(sells, 0L);

and in 5100

   long buys[], sells[];
   ArrayResize(buys, count);
   ArrayResize(sells, count);
   ArrayFill(buys, 0, count, 0L);
   ArrayFill(sells, 0, count, 0L);