summaryrefslogtreecommitdiffstats
path: root/src/util/u_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/u_vector.h')
-rw-r--r--src/util/u_vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_vector.h b/src/util/u_vector.h
index f97a8b43cae..c7fcb37a052 100644
--- a/src/util/u_vector.h
+++ b/src/util/u_vector.h
@@ -38,7 +38,7 @@
static inline uint32_t
u_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);
}