diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-18 07:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 07:49:58 +0100 |
commit | 2ef4591e5849b5a1a4d6c65ed2d6ee19b4aec665 (patch) | |
tree | 1fb79639aecc69dfa2bab2037c6cefc7cff0113b /src | |
parent | Merge pull request #5754 from lat9nq/fix-disable-boxcat (diff) | |
parent | texture_cache/util: Resolve -Wsign-compare warning (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/video_core/texture_cache/util.cpp | 2 |
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; |