removed warnings on 64bit

int was changed to NSUInteger and another NSInteger was type casted to a
long.