diff --git a/disk_index_file.c b/disk_index_file.c index dcd827f079..f0bd20be1e 100644 --- a/disk_index_file.c +++ b/disk_index_file.c @@ -219,7 +219,7 @@ static bool disk_index_file_read(disk_index_file_t *disk_index_file) } /* Parse chunk */ - if (!JSON_Parser_Parse(context.parser, chunk, length, JSON_False)) + if (!JSON_Parser_Parse(context.parser, chunk, (size_t)length, JSON_False)) { RARCH_ERR( "[disk index file] Error parsing chunk of disk index file: %s\n---snip---\n%s\n---snip---\n", diff --git a/libretro-common/file/nbio/nbio_stdio.c b/libretro-common/file/nbio/nbio_stdio.c index 6cf17205ec..328e32aedb 100644 --- a/libretro-common/file/nbio/nbio_stdio.c +++ b/libretro-common/file/nbio/nbio_stdio.c @@ -131,7 +131,7 @@ static void *nbio_stdio_open(const char * filename, unsigned mode) handle->mode = mode; if (len) - buf = malloc(len); + buf = malloc((size_t)len); if (len && !buf) goto error; diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 5d7e42bb36..f80a4868be 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -9027,13 +9027,11 @@ static int materialui_pointer_up(void *userdata, * to open the core information menu */ else if (mui->is_core_updater_list) return materialui_menu_entry_action(mui, entry, selection, MENU_ACTION_START); - /* In all other cases, just perform a normal 'left' - * navigation event */ - else - return materialui_pointer_up_swipe_horz_default( - mui, entry, ptr, selection, entries_end, MENU_ACTION_LEFT); } - break; + /* In all other cases, just perform a normal 'left' + * navigation event */ + return materialui_pointer_up_swipe_horz_default( + mui, entry, ptr, selection, entries_end, MENU_ACTION_LEFT); case MENU_INPUT_GESTURE_SWIPE_RIGHT: { /* If we are at the top level and the navigation bar is @@ -9055,13 +9053,11 @@ static int materialui_pointer_up(void *userdata, * to open the core information menu */ else if (mui->is_core_updater_list) return materialui_menu_entry_action(mui, entry, selection, MENU_ACTION_START); - /* In all other cases, just perform a normal 'right' - * navigation event */ - else - return materialui_pointer_up_swipe_horz_default( - mui, entry, ptr, selection, entries_end, MENU_ACTION_RIGHT); } - break; + /* In all other cases, just perform a normal 'right' + * navigation event */ + return materialui_pointer_up_swipe_horz_default( + mui, entry, ptr, selection, entries_end, MENU_ACTION_RIGHT); default: /* Ignore input */ break; diff --git a/runtime_file.c b/runtime_file.c index b1843e0bed..4b3d5e7d05 100644 --- a/runtime_file.c +++ b/runtime_file.c @@ -194,7 +194,7 @@ static void runtime_log_read_file(runtime_log_t *runtime_log) } /* Parse chunk */ - if (!JSON_Parser_Parse(context.parser, chunk, length, JSON_False)) + if (!JSON_Parser_Parse(context.parser, chunk, (size_t)length, JSON_False)) { RARCH_ERR("Error parsing chunk of runtime log file: %s\n---snip---\n%s\n---snip---\n", runtime_log->path, chunk); RtlJSONLogError(&context);