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.
This commit is contained in:
Luflosi 2019-10-06 22:56:58 +02:00
parent 1e20218b3d
commit 7749aac50d
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

@ -252,7 +252,7 @@ void _glfwPollMonitorsNS(void)
CGDirectDisplayID* displays = calloc(displayCount, sizeof(CGDirectDisplayID)); CGDirectDisplayID* displays = calloc(displayCount, sizeof(CGDirectDisplayID));
CGGetOnlineDisplayList(displayCount, displays, &displayCount); 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; _glfw.monitors[i]->ns.screen = nil;
_GLFWmonitor** disconnected = NULL; _GLFWmonitor** disconnected = NULL;