diff options
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index c94967e8a42..1661e63dbdd 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -682,7 +682,7 @@ align(int value, int alignment) static inline uint64_t align64(uint64_t value, unsigned alignment) { - return (value + alignment - 1) & ~(alignment - 1); + return (value + alignment - 1) & ~((uint64_t)alignment - 1); } /** |