From dbac122aee5db64ce05b49b17ffe8d771094e527 Mon Sep 17 00:00:00 2001 From: "Stephen F. Booth" Date: Sat, 7 Dec 2024 22:26:33 -0600 Subject: [PATCH] Use fixed width types --- taglib/toolkit/tutils.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/taglib/toolkit/tutils.h b/taglib/toolkit/tutils.h index a17e5566..d18aa2ee 100644 --- a/taglib/toolkit/tutils.h +++ b/taglib/toolkit/tutils.h @@ -30,6 +30,7 @@ #ifndef DO_NOT_DOCUMENT // tell Doxygen not to document this header +#include #include #include #include @@ -60,7 +61,7 @@ namespace TagLib /*! * Reverses the order of bytes in a 16-bit integer. */ - inline unsigned short byteSwap(unsigned short x) + inline uint16_t byteSwap(uint16_t x) { #if defined(HAVE_GCC_BYTESWAP) @@ -92,7 +93,7 @@ namespace TagLib /*! * Reverses the order of bytes in a 32-bit integer. */ - inline unsigned int byteSwap(unsigned int x) + inline uint32_t byteSwap(uint32_t x) { #if defined(HAVE_GCC_BYTESWAP) @@ -127,7 +128,7 @@ namespace TagLib /*! * Reverses the order of bytes in a 64-bit integer. */ - inline unsigned long long byteSwap(unsigned long long x) + inline uint64_t byteSwap(uint64_t x) { #if defined(HAVE_GCC_BYTESWAP)