From 4b0f344024754d738145163b65943199921eaf22 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 16 Feb 2021 20:57:54 +0100 Subject: [PATCH] Silence some warnings --- libretro-common/streams/rzip_stream.c | 4 ++-- menu/cbs/menu_cbs_ok.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libretro-common/streams/rzip_stream.c b/libretro-common/streams/rzip_stream.c index b319413d0c..0dccdb6643 100644 --- a/libretro-common/streams/rzip_stream.c +++ b/libretro-common/streams/rzip_stream.c @@ -559,7 +559,7 @@ int64_t rzipstream_read(rzipstream_t *stream, void *data, int64_t len) /* Process input data */ while (data_len > 0) { - uint32_t read_size = 0; + int64_t read_size = 0; /* Check whether we have reached the end * of the file */ @@ -821,7 +821,7 @@ int64_t rzipstream_write(rzipstream_t *stream, const void *data, int64_t len) /* Process input data */ while (data_len > 0) { - uint32_t cache_size = 0; + int64_t cache_size = 0; /* If input buffer is full, compress and write to disk */ if (stream->in_buf_ptr >= stream->in_buf_size) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 498443646b..b10daf341f 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -6488,7 +6488,7 @@ static int action_ok_push_dropdown_item_input_device_index(const char *path, if (!setting) return menu_cbs_exit(); - settings->uints.input_joypad_map[setting->index_offset] = entry_idx; + settings->uints.input_joypad_map[setting->index_offset] = (unsigned)entry_idx; return action_cancel_pop_default(NULL, NULL, 0, 0); }