mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nir: fix a few signed/unsigned comparison warnings
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e1d8057160
commit
d13167cd21
1 changed files with 2 additions and 2 deletions
|
|
@ -690,7 +690,7 @@ glsl_type_get_sampler_count(const struct glsl_type *type)
|
|||
|
||||
if (glsl_type_is_struct_or_ifc(type)) {
|
||||
unsigned count = 0;
|
||||
for (int i = 0; i < glsl_get_length(type); i++)
|
||||
for (unsigned i = 0; i < glsl_get_length(type); i++)
|
||||
count += glsl_type_get_sampler_count(glsl_get_struct_field(type, i));
|
||||
return count;
|
||||
}
|
||||
|
|
@ -711,7 +711,7 @@ glsl_type_get_image_count(const struct glsl_type *type)
|
|||
|
||||
if (glsl_type_is_struct_or_ifc(type)) {
|
||||
unsigned count = 0;
|
||||
for (int i = 0; i < glsl_get_length(type); i++)
|
||||
for (unsigned i = 0; i < glsl_get_length(type); i++)
|
||||
count += glsl_type_get_image_count(glsl_get_struct_field(type, i));
|
||||
return count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue