summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-28 10:09:56 -0600
committerBrian Paul <[email protected]>2011-09-28 10:39:10 -0600
commitd1e567fb00fbc066e4af9f58f1c106a6b0b5b827 (patch)
tree1ba31fff2cd1f12fd480105f77fc1e05b8d163a4 /src/mesa
parentd487cc23a17ad5216f7aaed478402cf23c7837ab (diff)
mesa: fix signed/unsigned warning in sscanf()
Diffstat (limited to 'src/mesa')
-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 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;