From: Brian Paul Date: Wed, 28 Sep 2011 16:09:56 +0000 (-0600) Subject: mesa: fix signed/unsigned warning in sscanf() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1e567fb00fbc066e4af9f58f1c106a6b0b5b827;p=mesa.git mesa: fix signed/unsigned warning in sscanf() --- 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;