mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
src/compiler: Fix warning C4389: An == or != operation involved signed and unsigned variables. This could result in a loss of data.
Reviewed-By: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Jesse Natalie <None> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32979>
This commit is contained in:
parent
8ecb7bc2a2
commit
e061792e25
1 changed files with 1 additions and 1 deletions
|
|
@ -1220,7 +1220,7 @@ nir_a_minus_bc(nir_builder *build, nir_def *src0, nir_def *src1,
|
|||
static inline nir_def *
|
||||
nir_pack_bits(nir_builder *b, nir_def *src, unsigned dest_bit_size)
|
||||
{
|
||||
assert(src->num_components * src->bit_size == dest_bit_size);
|
||||
assert((unsigned)(src->num_components * src->bit_size) == dest_bit_size);
|
||||
|
||||
switch (dest_bit_size) {
|
||||
case 64:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue