Use the correct type in a for loop

The `sizeof()` operator has the type `size_t`, so the `for` loop iterating over it should use the same type.

Closes #1614.
This commit is contained in:
Luflosi 2019-10-06 22:53:42 +02:00
parent 73a8ebb691
commit d755911bba
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -331,7 +331,7 @@ void _glfwInitJoysticksNS(void)
return; return;
} }
for (int i = 0; i < sizeof(usages) / sizeof(long); i++) for (size_t i = 0; i < sizeof(usages) / sizeof(long); i++)
{ {
const long page = kHIDPage_GenericDesktop; const long page = kHIDPage_GenericDesktop;