From de514e8a07a3111ebeb6875cff1786fc7b9fb1cb Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Fri, 15 Oct 2021 11:56:30 +0200 Subject: [PATCH] [lonetix/xpt] Minor style fix, do not use uintptr_t directly --- lonetix/include/df/xpt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lonetix/include/df/xpt.h b/lonetix/include/df/xpt.h index 20a32a6..2aaae4e 100644 --- a/lonetix/include/df/xpt.h +++ b/lonetix/include/df/xpt.h @@ -266,9 +266,9 @@ typedef uintptr_t Uintptr; ///< Fixed-size unsigned type large enough to store #define ALIGN_DOWN(x, align) \ ALIGN((x) - ((align) - 1), align) #define ALIGN_PTR(p, align) \ - ((void *) ALIGN((uintptr_t) (p), align)) + ((void *) ALIGN((Uintptr) (p), align)) #define ALIGN_PTR_DOWN(p, align) \ - ((void *) ALIGN_DOWN((uintptr_t) (p), align)) + ((void *) ALIGN_DOWN((Uintptr) (p), align)) #define IS_ALIGNED(x, align) (((x) & ((align) - 1)) == 0) #define IS_PTR_ALIGNED(p, align) IS_ALIGNED((Uintptr) p, align)