diff --git a/core_info.c b/core_info.c index 9607ab45c9..bdfa7290cf 100644 --- a/core_info.c +++ b/core_info.c @@ -1136,7 +1136,7 @@ bool core_info_hw_api_supported(core_info_t *info) if (string_is_empty(cur_api)) continue; - cur_api_len = strlen(cur_api); + cur_api_len = (int)strlen(cur_api); for (j = 0; j < cur_api_len; j++) { diff --git a/libretro-common/formats/cdfs/cdfs.c b/libretro-common/formats/cdfs/cdfs.c index efe71fbbae..30c88b511d 100644 --- a/libretro-common/formats/cdfs/cdfs.c +++ b/libretro-common/formats/cdfs/cdfs.c @@ -226,7 +226,7 @@ int64_t cdfs_read_file(cdfs_file_t* file, void* buffer, uint64_t len) intfstream_read(file->stream, file->sector_buffer, 2048); memcpy(buffer, file->sector_buffer, len); file->current_sector_offset = len; - file->sector_buffer_valid = 1; + file->sector_buffer_valid = 1; bytes_read += len; } diff --git a/retroarch.c b/retroarch.c index c17c13bf50..416a4ba418 100644 --- a/retroarch.c +++ b/retroarch.c @@ -11629,14 +11629,14 @@ static void input_driver_poll(void) if (current_input && current_input->input_state) ret = current_input->input_state(current_input_data, joypad_info[i], libretro_input_binds, - i, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK); + (unsigned)i, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK); for (k = 0; k < RARCH_FIRST_CUSTOM_BIND; k++) { if (ret & (1 << k)) { int16_t val = input_joypad_analog( - joypad_driver, joypad_info[i], i, + joypad_driver, joypad_info[i], (unsigned)i, RETRO_DEVICE_INDEX_ANALOG_BUTTON, k, libretro_input_binds[i]); BIT256_SET_PTR(p_new_state, k); @@ -11652,7 +11652,7 @@ static void input_driver_poll(void) { unsigned offset = 0 + (k * 4) + (j * 2); int16_t val = input_joypad_analog(joypad_driver, - joypad_info[i], i, k, j, libretro_input_binds[i]); + joypad_info[i], (unsigned)i, k, j, libretro_input_binds[i]); if (val >= 0) p_new_state->analogs[offset] = val;