diff --git a/cheevos.c b/cheevos.c index 672ad41f11..39262e2ab1 100644 --- a/cheevos.c +++ b/cheevos.c @@ -1651,7 +1651,7 @@ static int cheevos_deactivate__json_number(void *userdata, for (; cheevo < end; cheevo++) { - if (cheevo->id == id) + if (cheevo->id == (unsigned)id) { cheevo->active = 0; found = 1; @@ -1666,7 +1666,7 @@ static int cheevos_deactivate__json_number(void *userdata, for (; cheevo < end; cheevo++) { - if (cheevo->id == id) + if (cheevo->id == (unsigned)id) { cheevo->active = 0; break; diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 0959b2ccc7..b43103c643 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -796,7 +796,7 @@ static int setting_string_action_right_audio_device(void *data, bool wraparound) audio_device_index++; /* Reset index if needed */ - if (audio_device_index == ptr->size) + if (audio_device_index == (signed)ptr->size) audio_device_index = 0; strlcpy(setting->value.target.string, ptr->elems[audio_device_index].data, setting->size);