Skip to content

Commit

Permalink
Fixed build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed May 17, 2022
1 parent 89ae741 commit 8e7774f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bgfx_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)<<kSortKeyViewBitShift;

Expand Down Expand Up @@ -1243,7 +1243,7 @@ namespace bgfx
{
const uint32_t view = (uint32_t(m_view) << kBlitKeyViewShift) & kBlitKeyViewMask;
const uint32_t item = (uint32_t(m_item) << kBlitKeyItemShift) & kBlitKeyItemMask;
const uint64_t key = view|item;
const uint32_t key = view|item;

return key;
}
Expand Down

0 comments on commit 8e7774f

Please sign in to comment.