mesa: fix signed/unsigned sscanf() warning in _mesa_override_glsl_version()
authorBrian Paul <brianp@vmware.com>
Wed, 28 Sep 2011 19:16:45 +0000 (13:16 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Sep 2011 19:17:11 +0000 (13:17 -0600)
src/mesa/main/version.c

index 665b0e7ad28af5e79a57ea87bf88b543aae9d3f9..c497317473dec732b8766dfa9ceb558a676cdaed 100644 (file)
@@ -68,7 +68,7 @@ _mesa_override_glsl_version(struct gl_context *ctx)
       return;
    }
 
-   n = sscanf(version, "%d", &ctx->Const.GLSLVersion);
+   n = sscanf(version, "%u", &ctx->Const.GLSLVersion);
    if (n != 1) {
       fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version);
       return;