2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

texture_cache/util: Resolve -Wsign-compare warning

Resolves a -Wsign-compare warning on Clang.
This commit is contained in:
Lioncash 2021-01-17 02:47:46 -05:00
parent 0e0fc07135
commit 5f4e7c77bd

View file

@ -679,7 +679,7 @@ u32 CalculateLayerSize(const ImageInfo& info) noexcept {
} }
std::array<u32, MAX_MIP_LEVELS> CalculateMipLevelOffsets(const ImageInfo& info) noexcept { std::array<u32, MAX_MIP_LEVELS> CalculateMipLevelOffsets(const ImageInfo& info) noexcept {
ASSERT(info.resources.levels <= MAX_MIP_LEVELS); ASSERT(info.resources.levels <= static_cast<s32>(MAX_MIP_LEVELS));
const LevelInfo level_info = MakeLevelInfo(info); const LevelInfo level_info = MakeLevelInfo(info);
std::array<u32, MAX_MIP_LEVELS> offsets{}; std::array<u32, MAX_MIP_LEVELS> offsets{};
u32 offset = 0; u32 offset = 0;