aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-03 10:27:12 -0400
committerDavid Robillard <d@drobilla.net>2023-05-03 10:38:23 -0400
commit7a1d0239a6eecf99532d9a1ce8859eec876a142e (patch)
tree73ff17662d18581a2170a91042a794b789c35be7
parent7f7ff7e0a1f3bb936006615773a974e2bcd2afb0 (diff)
downloadpugl-7a1d0239a6eecf99532d9a1ce8859eec876a142e.tar.gz
pugl-7a1d0239a6eecf99532d9a1ce8859eec876a142e.tar.bz2
pugl-7a1d0239a6eecf99532d9a1ce8859eec876a142e.zip
Fix mismatched format specifiers
-rw-r--r--test/test_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_utils.h b/test/test_utils.h
index 785c8c7..c1dfb9d 100644
--- a/test/test_utils.h
+++ b/test/test_utils.h
@@ -365,7 +365,7 @@ puglParseTestOptions(int* pargc, char*** pargv)
}
const int matches =
- sscanf(argv[i], "%u.%u", &opts.glMajorVersion, &opts.glMinorVersion);
+ sscanf(argv[i], "%d.%d", &opts.glMajorVersion, &opts.glMinorVersion);
if (matches != 2) {
fprintf(stderr, "error: Invalid OpenGL version argument\n");
return opts;