Build 969 - ArraySize returns uint instead of int

[Deleted]

Hello there,

 since build 969 the ArraySize function returns uint datatype instead of int. Now, the return type itself is ok, it's logically correct and it's safe...

The drawback is I get a lot of warnings during compilation, even in Metaquote's code.

What to do?

  • rewrite EVERY SINGLE FILE to be compliant with the ArraySize function (going insane)
  • do nothing and just stop considering warnings at compile (going unsafe)
  • ask to restore the original ArraySize return type?
Considering the official documentation still says "INT", I hope this is a bug..


Thanks
[Deleted]

Here is what I did to suppress the warning:

Replaced in files all occurrences of "ArraySize" with "(int)ArraySize".

That's not a clean nor perfect solution, but did the job! 

lamemind:

Here is what I did to suppress the warning:

Replaced in files all occurrences of "ArraySize" with "(int)ArraySize".

That's not a clean nor perfect solution, but did the job! 

I noticed this too. I think it is not a bug though, it makes more sense to use uint instead of int here.