mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
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.
(cherry picked from commit 74a46dfa0c
)
This commit is contained in:
parent
9fc5fd1375
commit
cb49e1821b
@ -331,7 +331,7 @@ void _glfwInitJoysticksNS(void)
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user