From 250b94cd03e6f947ba516869c7f3b277f8d0cacc Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 25 May 2020 15:03:23 +0200 Subject: [PATCH] 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. --- src/x11_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_init.c b/src/x11_init.c index 3ecc7fa8..5e31e16b 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -497,7 +497,7 @@ static Atom getAtomIfSupported(Atom* supportedAtoms, { 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) return atom;