util: Update ALIGN prototype to match align

This is for rename merge ALIGN into align in future

Now it's safe to do that, because all warnings that triggered with
clang -Wshorten-64-to-32
already fixed in previous version

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10269

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23932>
This commit is contained in:
Yonggang Luo 2023-12-09 03:22:52 +08:00 committed by Marge Bot
parent 8c847eb2de
commit 0482153ef6

View file

@ -633,8 +633,8 @@ util_memcpy_cpu_to_le32(void * restrict dest, const void * restrict src, size_t
#if defined(ALIGN)
#undef ALIGN
#endif
static inline uintptr_t
ALIGN(uintptr_t value, int32_t alignment)
static inline uint32_t
ALIGN(uint32_t value, uint32_t alignment)
{
assert(util_is_power_of_two_nonzero(alignment));
return ALIGN_POT(value, alignment);