From 75831d5fceead7fb1b244aa1ea6b89e5be325689 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 4 May 2021 17:08:58 +0200 Subject: [PATCH] util/math: change ROUND_DOWN_TO to return a uint64_t For 32-bit builds. Signed-off-by: Samuel Pitoiset Reviewed-by: Adam Jackson Part-of: --- src/util/u_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/u_math.h b/src/util/u_math.h index 567c51d..11ee275 100644 --- a/src/util/u_math.h +++ b/src/util/u_math.h @@ -737,8 +737,8 @@ ALIGN_NPOT(uintptr_t value, int32_t alignment) * * \sa ALIGN() */ -static inline uintptr_t -ROUND_DOWN_TO(uintptr_t value, int32_t alignment) +static inline uint64_t +ROUND_DOWN_TO(uint64_t value, int32_t alignment) { assert(util_is_power_of_two_nonzero(alignment)); return ((value) & ~(alignment - 1)); -- 2.7.4