From d1e567fb00fbc066e4af9f58f1c106a6b0b5b827 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Sep 2011 10:09:56 -0600 Subject: [PATCH] mesa: fix signed/unsigned warning in sscanf() --- src/mesa/main/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index a5deeabd2f1..00b423cd479 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -44,7 +44,7 @@ override_version(struct gl_context *ctx, GLuint *major, GLuint *minor) return; } - n = sscanf(version, "%d.%d", major, minor); + n = sscanf(version, "%u.%u", major, minor); if (n != 2) { fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version); return; -- 2.30.2