mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nir/spirv: fix MSVC warning in vtn_align_u32()
Fixes warning that "negation of an unsigned value results in an unsigned value". Reviewed-by: Neil Roberts <nroberts@igalia.com>
This commit is contained in:
parent
31d91f019b
commit
84be45fc20
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ void vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode,
|
|||
static inline uint32_t
|
||||
vtn_align_u32(uint32_t v, uint32_t a)
|
||||
{
|
||||
assert(a != 0 && a == (a & -a));
|
||||
assert(a != 0 && a == (a & -((int32_t) a)));
|
||||
return (v + a - 1) & ~(a - 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue