mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(Apple) Silence some warnings
This commit is contained in:
parent
27ada9b7b2
commit
753be84ae0
@ -1136,7 +1136,7 @@ bool core_info_hw_api_supported(core_info_t *info)
|
|||||||
if (string_is_empty(cur_api))
|
if (string_is_empty(cur_api))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
cur_api_len = strlen(cur_api);
|
cur_api_len = (int)strlen(cur_api);
|
||||||
|
|
||||||
for (j = 0; j < cur_api_len; j++)
|
for (j = 0; j < cur_api_len; j++)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
intfstream_read(file->stream, file->sector_buffer, 2048);
|
||||||
memcpy(buffer, file->sector_buffer, len);
|
memcpy(buffer, file->sector_buffer, len);
|
||||||
file->current_sector_offset = len;
|
file->current_sector_offset = len;
|
||||||
file->sector_buffer_valid = 1;
|
file->sector_buffer_valid = 1;
|
||||||
|
|
||||||
bytes_read += len;
|
bytes_read += len;
|
||||||
}
|
}
|
||||||
|
@ -11629,14 +11629,14 @@ static void input_driver_poll(void)
|
|||||||
if (current_input && current_input->input_state)
|
if (current_input && current_input->input_state)
|
||||||
ret = current_input->input_state(current_input_data, joypad_info[i],
|
ret = current_input->input_state(current_input_data, joypad_info[i],
|
||||||
libretro_input_binds,
|
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++)
|
for (k = 0; k < RARCH_FIRST_CUSTOM_BIND; k++)
|
||||||
{
|
{
|
||||||
if (ret & (1 << k))
|
if (ret & (1 << k))
|
||||||
{
|
{
|
||||||
int16_t val = input_joypad_analog(
|
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]);
|
RETRO_DEVICE_INDEX_ANALOG_BUTTON, k, libretro_input_binds[i]);
|
||||||
|
|
||||||
BIT256_SET_PTR(p_new_state, k);
|
BIT256_SET_PTR(p_new_state, k);
|
||||||
@ -11652,7 +11652,7 @@ static void input_driver_poll(void)
|
|||||||
{
|
{
|
||||||
unsigned offset = 0 + (k * 4) + (j * 2);
|
unsigned offset = 0 + (k * 4) + (j * 2);
|
||||||
int16_t val = input_joypad_analog(joypad_driver,
|
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)
|
if (val >= 0)
|
||||||
p_new_state->analogs[offset] = val;
|
p_new_state->analogs[offset] = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user