fix Warning

In 64bit mode

compiler says

**Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'**