summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-04-03 08:45:07 -0600
committerBrian Paul <[email protected]>2017-04-03 13:09:05 -0600
commitb98ec1e92055857c08bb132a09115854d9c2248a (patch)
treeac82c4957aeedf6a84300d6284cf37805e875eaa /src
parent960f640c7ae2526691577e9edb355cac0bd58823 (diff)
util: fix MSVC warning in u_align_u32()
To silence C:\Users\Brian\projects\mesa\src\util/u_vector.h(41) : warning C4146: unary minus operator applied to unsigned type, result still unsigned Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-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);
}