diff options
author | Brian Paul <[email protected]> | 2011-09-28 13:16:45 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-28 13:17:11 -0600 |
commit | b79782cbedf8b23ea392d9a597eb4831a605bbe0 (patch) | |
tree | 2cc36940e49ec2e6c4f373185b06b06e69d18bba /src | |
parent | 3bb41e7b2d359e02f6a1ad8df6be52d9aea7d296 (diff) |
mesa: fix signed/unsigned sscanf() warning in _mesa_override_glsl_version()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/version.c | 2 |
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; |