From e90e4df39201744c21180887c595187b0c8072c3 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Wed, 3 Jul 2019 19:25:42 -0400 Subject: [PATCH] tycho: use std::byte --- tycho/cc/tycho.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tycho/cc/tycho.h b/tycho/cc/tycho.h index e275dd9..4c413d4 100644 --- a/tycho/cc/tycho.h +++ b/tycho/cc/tycho.h @@ -166,10 +166,7 @@ static inline void dbgPrint([[maybe_unused]] char const *fmt, #define dbgPrintFunc() dbgPrint("%s", __func__) -static inline constexpr std::uint32_t fourCC(std::uint8_t a, - std::uint8_t b, - std::uint8_t c, - std::uint8_t d) +constexpr std::uint32_t fourCC(std::byte a, std::byte b, std::byte c, std::byte d) { return (a << 24) | (b << 16) | (c << 8) | d; }