summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-28 13:16:45 -0600
committerBrian Paul <[email protected]>2011-09-28 13:17:11 -0600
commitb79782cbedf8b23ea392d9a597eb4831a605bbe0 (patch)
tree2cc36940e49ec2e6c4f373185b06b06e69d18bba /src
parent3bb41e7b2d359e02f6a1ad8df6be52d9aea7d296 (diff)
mesa: fix signed/unsigned sscanf() warning in _mesa_override_glsl_version()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 665b0e7ad28..c497317473d 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -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;