diff options
| author | 2026-04-12 13:16:17 -0400 | |
|---|---|---|
| committer | 2026-04-12 13:16:17 -0400 | |
| commit | 7c83f46445cee77e935720ec8291886eb21248d7 (patch) | |
| tree | b6f15d6ce622f702e026c9872fef9cd28872cf61 /include/al/macros.h | |
| parent | c794d9dea5a23864a410aa26a567b3303ee53a87 (diff) | |
| download | libalabaster-7c83f46445cee77e935720ec8291886eb21248d7.tar.gz libalabaster-7c83f46445cee77e935720ec8291886eb21248d7.tar.bz2 libalabaster-7c83f46445cee77e935720ec8291886eb21248d7.zip | |
macros: Don't inject types in byte count macros
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'include/al/macros.h')
| -rw-r--r-- | include/al/macros.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |