mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
iOS: Get rid of some unsigned/signed comparison warnings.
This commit is contained in:
parent
68e1e3add8
commit
1e02afcbdf
@ -64,7 +64,7 @@ void apple_display_alert(const char *message, const char *title)
|
|||||||
|
|
||||||
- (BOOL)isPartialStringValid:(NSString*)partialString newEditingString:(NSString**)newString errorDescription:(NSString**)error
|
- (BOOL)isPartialStringValid:(NSString*)partialString newEditingString:(NSString**)newString errorDescription:(NSString**)error
|
||||||
{
|
{
|
||||||
int i;
|
NSUInteger i;
|
||||||
bool hasDot = false;
|
bool hasDot = false;
|
||||||
|
|
||||||
if (partialString.length)
|
if (partialString.length)
|
||||||
|
@ -251,7 +251,7 @@ static void file_action(enum file_action action, NSString* source, NSString* tar
|
|||||||
|
|
||||||
dir_list_sort(contents, true);
|
dir_list_sort(contents, true);
|
||||||
|
|
||||||
for (int i = 0; i < contents->size; i ++)
|
for (size_t i = 0; i < contents->size; i ++)
|
||||||
{
|
{
|
||||||
const char* basename = path_basename(contents->elems[i].data);
|
const char* basename = path_basename(contents->elems[i].data);
|
||||||
|
|
||||||
@ -427,7 +427,7 @@ static void file_action(enum file_action action, NSString* source, NSString* tar
|
|||||||
|
|
||||||
if (contents)
|
if (contents)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
dir_list_sort(contents, true);
|
dir_list_sort(contents, true);
|
||||||
|
|
||||||
for (i = 0; i < contents->size; i ++)
|
for (i = 0; i < contents->size; i ++)
|
||||||
|
@ -52,7 +52,7 @@ typedef void (^RAActionSheetCallback)(UIActionSheet*, NSInteger);
|
|||||||
|
|
||||||
static void RunActionSheet(const char* title, const struct string_list* items, UIView* parent, RAActionSheetCallback callback)
|
static void RunActionSheet(const char* title, const struct string_list* items, UIView* parent, RAActionSheetCallback callback)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
RARunActionSheetDelegate* delegate = [[RARunActionSheetDelegate alloc] initWithCallbackBlock:callback];
|
RARunActionSheetDelegate* delegate = [[RARunActionSheetDelegate alloc] initWithCallbackBlock:callback];
|
||||||
UIActionSheet* actionSheet = [UIActionSheet new];
|
UIActionSheet* actionSheet = [UIActionSheet new];
|
||||||
|
|
||||||
@ -683,7 +683,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
|||||||
|
|
||||||
- (void)willReloadData
|
- (void)willReloadData
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
RAHistoryMenu* __weak weakSelf = self;
|
RAHistoryMenu* __weak weakSelf = self;
|
||||||
NSMutableArray *section = [NSMutableArray arrayWithObject:BOXSTRING("")];
|
NSMutableArray *section = [NSMutableArray arrayWithObject:BOXSTRING("")];
|
||||||
|
|
||||||
@ -907,7 +907,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
|||||||
|
|
||||||
- (void)willReloadData
|
- (void)willReloadData
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
const core_info_list_t* core_list;
|
const core_info_list_t* core_list;
|
||||||
RAFrontendSettingsMenu* __weak weakSelf = self;
|
RAFrontendSettingsMenu* __weak weakSelf = self;
|
||||||
NSMutableArray* cores = (NSMutableArray*)self.coreConfigOptions;
|
NSMutableArray* cores = (NSMutableArray*)self.coreConfigOptions;
|
||||||
|
@ -116,7 +116,7 @@ static void handle_touch_event(NSArray* touches)
|
|||||||
// Keyboard handler for iOS 7
|
// Keyboard handler for iOS 7
|
||||||
- (id)_keyCommandForEvent:(UIEvent*)event
|
- (id)_keyCommandForEvent:(UIEvent*)event
|
||||||
{
|
{
|
||||||
int i;
|
NSUInteger i;
|
||||||
// This gets called twice with the same timestamp for each keypress, that's fine for polling
|
// This gets called twice with the same timestamp for each keypress, that's fine for polling
|
||||||
// but is bad for business with events.
|
// but is bad for business with events.
|
||||||
static double last_time_stamp;
|
static double last_time_stamp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user