util: Add align_uintptr and use it treewide to replace ALIGN that works on size_t and uintptr_t
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26866>
This commit is contained in:
+1
-1
@@ -229,7 +229,7 @@ u_printf_impl(FILE *out, const char *buffer, size_t buffer_size,
|
||||
free(print_str);
|
||||
|
||||
buf_pos += arg_size;
|
||||
buf_pos = ALIGN(buf_pos, 4);
|
||||
buf_pos = align_uintptr(buf_pos, 4);
|
||||
}
|
||||
|
||||
/* print remaining */
|
||||
|
||||
Reference in New Issue
Block a user