From 7c83f46445cee77e935720ec8291886eb21248d7 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sun, 12 Apr 2026 13:16:17 -0400 Subject: macros: Don't inject types in byte count macros Signed-off-by: Andrew Opalach --- include/al/macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/al/macros.h') diff --git a/include/al/macros.h b/include/al/macros.h index fbf3f7e..6e71387 100644 --- a/include/al/macros.h +++ b/include/al/macros.h @@ -82,10 +82,11 @@ #error "Conflicting definitions for byte size macros" #endif +// It's the user's responsibility to worry about type size here. #define KB(n) ((n) << 10) #define MB(n) ((n) << 20) #define GB(n) ((n) << 30) -#define TB(n) (((u64)n) << 40) +#define TB(n) ((n) << 40) //#if defined __counted_by || defined __sized_by #if defined __sized_by -- cgit v1.2.3-101-g0448