aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_utils.h')
-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;