Explicitly cast NSMakeRange arguments to int