summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2021-01-18 07:49:58 +0100
committerGitHub <noreply@github.com>2021-01-18 07:49:58 +0100
commit2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665 (patch)
tree1fb79639aecc69dfa2bab2037c6cefc7cff0113b /src
parentMerge pull request #5754 from lat9nq/fix-disable-boxcat (diff)
parenttexture_cache/util: Resolve -Wsign-compare warning (diff)
downloadyuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.tar
yuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.tar.gz
yuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.tar.bz2
yuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.tar.lz
yuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.tar.xz
yuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.tar.zst
yuzu-2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp
index ce8fcfe0a..b23424523 100644
--- a/src/video_core/texture_cache/util.cpp
+++ b/src/video_core/texture_cache/util.cpp
@@ -679,7 +679,7 @@ u32 CalculateLayerSize(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);
std::array<u32, MAX_MIP_LEVELS> offsets{};
u32 offset = 0;