projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d487cc2
)
mesa: fix signed/unsigned warning in sscanf()
author
Brian Paul
<brianp@vmware.com>
Wed, 28 Sep 2011 16:09:56 +0000
(10:09 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 28 Sep 2011 16:39:10 +0000
(10:39 -0600)
src/mesa/main/version.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/version.c
b/src/mesa/main/version.c
index a5deeabd2f1c8e8c7591334ec255553dee794cc5..00b423cd47935ea9eb81ffc834d2decb53d245dc 100644
(file)
--- 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;