projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0b6df4
)
glsl2: fix signed/unsigned comparison warning
author
Brian Paul
<brianp@vmware.com>
Wed, 15 Sep 2010 18:47:32 +0000
(12:47 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 15 Sep 2010 18:47:32 +0000
(12:47 -0600)
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 2edf01bb8f7cf74da529239a69803e0f40da90c6..227dfdbd50a772f90164ff7fc2f8c6c96ed4b9bb 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-898,8
+898,8
@@
ir_to_mesa_visitor::visit(ir_variable *ir)
if (storage->index == -1) {
storage->index = index;
} else {
- assert(index ==
((int)storage->index +
-
a * statevar->num_elements + i));
+ assert(index ==
+
(int)(storage->index +
a * statevar->num_elements + i));
}
} else {
ir_to_mesa_src_reg src(PROGRAM_STATE_VAR, index, NULL);