diff options
author | Brian Paul <[email protected]> | 2011-09-07 11:44:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-07 16:47:14 -0600 |
commit | c0470bf77a038fd45441d1e55e6c89100996ff4b (patch) | |
tree | 26b8c354f65609a5ea285cce0589329e609a92cc /src | |
parent | c1cac8feecb9f868d7273e8892a6562e533d929a (diff) |
glsl: s/int/unsigned/ to silence warning
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir_reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index 10bf72aeeb8..2d0bccb78cd 100644 --- a/src/glsl/ir_reader.cpp +++ b/src/glsl/ir_reader.cpp @@ -777,7 +777,7 @@ ir_reader::read_constant(s_expression *expr) ir_constant_data data = { { 0 } }; // Read in list of values (at most 16). - int k = 0; + unsigned k = 0; foreach_iter(exec_list_iterator, it, values->subexpressions) { if (k >= 16) { ir_read_error(values, "expected at most 16 numbers"); @@ -821,7 +821,7 @@ ir_reader::read_constant(s_expression *expr) ++k; } if (k != type->components()) { - ir_read_error(values, "expected %d constant values, found %d", + ir_read_error(values, "expected %u constant values, found %u", type->components(), k); return NULL; } |