From d43b743ff43355637a0209254bc05e4cbfa7b3d1 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 21 Jul 2016 00:15:55 +0200 Subject: [PATCH] Fix GCC warnings --- src/win32_joystick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32_joystick.c b/src/win32_joystick.c index 012213ea..49f3b871 100644 --- a/src/win32_joystick.c +++ b/src/win32_joystick.c @@ -185,7 +185,7 @@ static GLFWbool supportsXInput(const GUID* guid) ridl = calloc(count, sizeof(RAWINPUTDEVICELIST)); - if (GetRawInputDeviceList(ridl, &count, sizeof(RAWINPUTDEVICELIST)) == -1) + if (GetRawInputDeviceList(ridl, &count, sizeof(RAWINPUTDEVICELIST)) == (UINT) -1) { free(ridl); return GLFW_FALSE; @@ -211,7 +211,7 @@ static GLFWbool supportsXInput(const GUID* guid) continue; } - if (MAKELONG(rdi.hid.dwVendorId, rdi.hid.dwProductId) != guid->Data1) + if (MAKELONG(rdi.hid.dwVendorId, rdi.hid.dwProductId) != (LONG) guid->Data1) continue; memset(name, 0, sizeof(name));