mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 09:01:46 +00:00
Use the correct type in a for loop
The `monitorCount` member in the `_GLFWlibrary` struct is of type `int`, so the `for` loop iterating over it should also use the type `int`.
Closes #1572.
(cherry picked from commit 7749aac50d
)
This commit is contained in:
parent
857951419a
commit
8c69091c59
@ -252,7 +252,7 @@ void _glfwPollMonitorsNS(void)
|
||||
CGDirectDisplayID* displays = calloc(displayCount, sizeof(CGDirectDisplayID));
|
||||
CGGetOnlineDisplayList(displayCount, displays, &displayCount);
|
||||
|
||||
for (uint32_t i = 0; i < _glfw.monitorCount; i++)
|
||||
for (int i = 0; i < _glfw.monitorCount; i++)
|
||||
_glfw.monitors[i]->ns.screen = nil;
|
||||
|
||||
_GLFWmonitor** disconnected = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user