diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2021-07-12 23:59:35 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2021-07-13 15:45:48 +0100 |
commit | edaccebf2dbff83193c2f95985a5b1ea90ccdfe1 (patch) | |
tree | 2a4226728ef552d0c302be85a4a3198a896abc76 | |
parent | 048809d5c1daf4e9c3a0347ecc19da1e202e9958 (diff) | |
download | waffle-edaccebf2dbff83193c2f95985a5b1ea90ccdfe1.tar.gz |
wflinfo: fixup sign-compare warnings
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r-- | src/utils/wflinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index 980c88d..9f389c5 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -579,7 +579,7 @@ print_context_flags(void) return; } - for (int i = 0; i < ARRAY_SIZE(context_flags); i++) { + for (unsigned i = 0; i < ARRAY_SIZE(context_flags); i++) { if ((context_flags[i].flag & gl_context_flags) != 0) { printf(" %s", context_flags[i].str); gl_context_flags = gl_context_flags & ~context_flags[i].flag; @@ -606,7 +606,7 @@ json_print_extensions(bool use_stringi) if (glGetError() != GL_NO_ERROR) { printf(" \"WFLINFO_GL_ERROR\""); } else { - for (int i = 0; i < count; i++) { + for (GLint i = 0; i < count; i++) { ext = (const char *) glGetStringi(GL_EXTENSIONS, i); if (glGetError() != GL_NO_ERROR) ext = "WFLINFO_GL_ERROR"; |