diff options
author | Michal Krol <[email protected]> | 2009-11-10 03:25:06 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-11-10 03:25:06 +0100 |
commit | b2a29ad3092c17f9a7d75ab123ec5c4619c87ec3 (patch) | |
tree | bc7ff1d0b905289f4ceebe5cc4731ad2d1ba9be6 /src/mesa | |
parent | b5d8a7b6dc1b48c2a11131803e1f37c05fe0bd03 (diff) |
slang: Fix signed/unsigned int handling in _slang_free_temp().
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_vartable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_vartable.c b/src/mesa/shader/slang/slang_vartable.c index a4ebacc0936..e07e3a226a5 100644 --- 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; - GLuint 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), |