projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5d8a7b
)
slang: Fix signed/unsigned int handling in _slang_free_temp().
author
Michal Krol
<michal@vmware.com>
Tue, 10 Nov 2009 02:25:06 +0000
(
03:25
+0100)
committer
Michal Krol
<michal@vmware.com>
Tue, 10 Nov 2009 02:25:06 +0000
(
03:25
+0100)
src/mesa/shader/slang/slang_vartable.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_vartable.c
b/src/mesa/shader/slang/slang_vartable.c
index a4ebacc093661e825ee796046a68a41d178f4e1a..e07e3a226a517ce5d7d677f7afa2305687cb17fd 100644
(file)
--- a/
src/mesa/shader/slang/slang_vartable.c
+++ b/
src/mesa/shader/slang/slang_vartable.c
@@
-311,10
+311,10
@@
_slang_free_temp(slang_var_table *vt, slang_ir_storage *store)
{
struct table *t = vt->Top;
GLuint i;
- GL
u
int r = store->Index;
+ GLint r = store->Index;
assert(store->Size > 0);
assert(r >= 0);
- assert(r + store->Size <= vt->MaxRegisters * 4);
+ assert(
(GLuint)
r + store->Size <= vt->MaxRegisters * 4);
if (dbg) printf("Free temp sz %d at %d.%s (level %d) store %p\n",
store->Size, r,
_mesa_swizzle_string(store->Swizzle, 0, 0),