mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
ir3: fix comparison of different signedness build issue
Addresses: ../src/freedreno/ir3/ir3_shader.h: In function 'void ir3_link_add(ir3_shader_linkage*, uint8_t, uint8_t, uint8_t, uint8_t)': ../src/freedreno/ir3/ir3_shader.h:1326:16: error: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Werror=sign-compare] 1326 | assert(i < ARRAY_SIZE(l->var)); Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38104>
This commit is contained in:
parent
79e4323cf0
commit
cf49571c9e
1 changed files with 1 additions and 1 deletions
|
|
@ -1322,7 +1322,7 @@ ir3_link_add(struct ir3_shader_linkage *l, uint8_t slot, uint8_t regid_,
|
|||
l->max_loc = MAX2(l->max_loc, loc + util_last_bit(compmask));
|
||||
|
||||
if (regid_ != regid(63, 0)) {
|
||||
int i = l->cnt++;
|
||||
const unsigned i = l->cnt++;
|
||||
assert(i < ARRAY_SIZE(l->var));
|
||||
|
||||
l->var[i].slot = slot;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue