From 7a1d0239a6eecf99532d9a1ce8859eec876a142e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 May 2023 10:27:12 -0400 Subject: Fix mismatched format specifiers --- test/test_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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; -- cgit v1.2.1