Fix some tvOS warnings

This commit is contained in:
twinaphex 2021-03-15 01:52:18 +01:00
parent a4836bbb17
commit 938c8f3abc
3 changed files with 5 additions and 5 deletions

View File

@ -186,9 +186,9 @@
memcpy(dst, src, glyph->width); memcpy(dst, src, glyph->width);
} }
#if !defined(HAVE_COCOATOUCH)
NSUInteger offset = glyph->atlas_offset_y; NSUInteger offset = glyph->atlas_offset_y;
NSUInteger len = glyph->height * _stride; NSUInteger len = glyph->height * _stride;
#if !defined(HAVE_COCOATOUCH)
[_buffer didModifyRange:NSMakeRange(offset, len)]; [_buffer didModifyRange:NSMakeRange(offset, len)];
#endif #endif

View File

@ -300,7 +300,7 @@ static void apple_gamecontroller_joypad_connect(GCController *controller)
} }
apple_gamecontroller_joypad_register(controller.gamepad); apple_gamecontroller_joypad_register(controller.gamepad);
mfi_joypad_autodetect_add(controller.playerIndex); mfi_joypad_autodetect_add((unsigned)controller.playerIndex);
} }
} }

View File

@ -66,7 +66,7 @@ void *file_list_get_actiondata_at_offset(const file_list_t *list,
* or non-contiguous data there, make sure you free it's fields * or non-contiguous data there, make sure you free it's fields
* before calling this function or you might get a memory leak. * before calling this function or you might get a memory leak.
* *
* @param list * @param list List to be freed
*/ */
void file_list_free(file_list_t *list); void file_list_free(file_list_t *list);
@ -80,8 +80,8 @@ bool file_list_initialize(file_list_t *list);
* This function will not change the capacity if nitems is smaller * This function will not change the capacity if nitems is smaller
* than the current capacity. * than the current capacity.
* *
* @param list * @param list The list to open for input
* @param nitems * @param nitems Number of items to reserve space for
* @return whether or not the operation succeeded * @return whether or not the operation succeeded
*/ */
bool file_list_reserve(file_list_t *list, size_t nitems); bool file_list_reserve(file_list_t *list, size_t nitems);