From ac143e1236319ea087388ff48a178930c0dbaf47 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 26 Apr 2023 17:40:18 -0700 Subject: Handle signed int values holding FourCC codes --- alc/backends/coreaudio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index d11bcf6f..ae220d7a 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -72,6 +72,7 @@ struct FourCCPrinter { code >>= 8; } } + constexpr FourCCPrinter(int code) noexcept : FourCCPrinter{static_cast(code)} { } constexpr const char *c_str() const noexcept { return mString; } }; -- cgit v1.2.3