Fix CXX_BUILD warnings

This commit is contained in:
twinaphex 2016-05-14 16:49:29 +02:00
parent c1633a8695
commit 92b1398a79
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);