projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb41e7
)
mesa: fix signed/unsigned sscanf() warning in _mesa_override_glsl_version()
author
Brian Paul
<brianp@vmware.com>
Wed, 28 Sep 2011 19:16:45 +0000
(13:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 28 Sep 2011 19:17:11 +0000
(13:17 -0600)
src/mesa/main/version.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/version.c
b/src/mesa/main/version.c
index 665b0e7ad28af5e79a57ea87bf88b543aae9d3f9..c497317473dec732b8766dfa9ceb558a676cdaed 100644
(file)
--- 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;