mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
8c847eb2de
commit
0482153ef6
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue