summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;