1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 15:17:25 -04:00

Clarified result comparison.

This commit is contained in:
Camilla Berglund 2012-08-28 20:24:37 +02:00
parent 53245d754e
commit 54fceaaf64

View File

@ -127,7 +127,7 @@ static void pollJoystickEvents(void)
if (errno == ENODEV) if (errno == ENODEV)
_glfwLibrary.X11.joystick[i].present = GL_FALSE; _glfwLibrary.X11.joystick[i].present = GL_FALSE;
if (result <= 0) if (result < sizeof(e))
break; break;
// We don't care if it's an init event or not // We don't care if it's an init event or not