diff options
author | Chris Robinson <[email protected]> | 2023-04-26 17:40:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-04-26 17:40:18 -0700 |
commit | ac143e1236319ea087388ff48a178930c0dbaf47 (patch) | |
tree | de3c772479e57cddce603c39d5d991c3a7bf0983 /alc | |
parent | e3d5c9f69cba4db2b5d4c0512a1132a83d3ce5d4 (diff) |
Handle signed int values holding FourCC codes
Diffstat (limited to 'alc')
-rw-r--r-- | alc/backends/coreaudio.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<UInt32>(code)} { } constexpr const char *c_str() const noexcept { return mString; } }; |