From 8e7774f735f815bd175726c3770fe3e5ea098c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 17 May 2022 11:30:10 -0700 Subject: [PATCH] Fixed build. --- src/bgfx_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 9ae770416..5924c831b 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -953,7 +953,7 @@ namespace bgfx }; // - constexpr uint8_t kSortKeyViewNumBits = 31 - bx::uint32_cntlz(BGFX_CONFIG_MAX_VIEWS); + constexpr uint8_t kSortKeyViewNumBits = uint8_t(31 - bx::uint32_cntlz(BGFX_CONFIG_MAX_VIEWS) ); constexpr uint8_t kSortKeyViewBitShift = 64-kSortKeyViewNumBits; constexpr uint64_t kSortKeyViewMask = uint64_t(BGFX_CONFIG_MAX_VIEWS-1)<