mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 14:24:35 +00:00
Use the correct type in a for loop
The `atomCount` variable has the type `unsigned long`,
so the `for` loop iterating over it should use the same type.
Closes #1701.
(cherry picked from commit 250b94cd03
)
This commit is contained in:
parent
a8e5c530ee
commit
11e5102d83
@ -464,7 +464,7 @@ static Atom getAtomIfSupported(Atom* supportedAtoms,
|
|||||||
{
|
{
|
||||||
const Atom atom = XInternAtom(_glfw.x11.display, atomName, False);
|
const Atom atom = XInternAtom(_glfw.x11.display, atomName, False);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < atomCount; i++)
|
for (unsigned long i = 0; i < atomCount; i++)
|
||||||
{
|
{
|
||||||
if (supportedAtoms[i] == atom)
|
if (supportedAtoms[i] == atom)
|
||||||
return atom;
|
return atom;
|
||||||
|
Loading…
Reference in New Issue
Block a user