mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
slang: Fix signed/unsigned int handling in _slang_free_temp().
This commit is contained in:
parent
b5d8a7b6dc
commit
b2a29ad309
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue