summaryrefslogtreecommitdiff
path: root/src/util/u_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/u_math.h')
-rw-r--r--src/util/u_math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/u_math.h b/src/util/u_math.h
index 567c51d7aec..11ee275617c 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));