warning: comparison between signed and unsigned integer expressions

This commit is contained in:
Alcaro 2017-01-02 02:21:28 +01:00
parent 9cf987c328
commit fcb17d91d9
3 changed files with 6 additions and 6 deletions

View File

@ -2353,7 +2353,7 @@ static void cheevos_fill_md5(size_t size, char fill, MD5_CTX *ctx)
while (size > 0)
{
ssize_t len = sizeof(buffer);
size_t len = sizeof(buffer);
if (len > size)
len = size;

View File

@ -111,7 +111,7 @@ static struct descriptor *descriptors[] = {
void NETRETROPAD_CORE_PREFIX(retro_init)(void)
{
int i;
unsigned i;
frame_buf = (uint16_t*)calloc(320 * 240, sizeof(uint16_t));
@ -150,7 +150,7 @@ void NETRETROPAD_CORE_PREFIX(retro_init)(void)
void NETRETROPAD_CORE_PREFIX(retro_deinit)(void)
{
int i;
unsigned i;
if (frame_buf)
free(frame_buf);
@ -201,7 +201,7 @@ void NETRETROPAD_CORE_PREFIX(retro_get_system_av_info)(
static void retropad_update_input(void)
{
int i;
unsigned i;
/* Poll input */
NETRETROPAD_CORE_PREFIX(input_poll_cb)();

View File

@ -50,8 +50,8 @@ enum menu_mouse_action
MENU_MOUSE_ACTION_HORIZ_WHEEL_DOWN
};
static int mouse_old_x = 0;
static int mouse_old_y = 0;
static unsigned mouse_old_x = 0;
static unsigned mouse_old_y = 0;
static rarch_timer_t mouse_activity_timer = {0};