From 5f4e7c77bd9056888e1eac3cae6873ce3ec261e1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 17 Jan 2021 02:47:46 -0500 Subject: [PATCH] texture_cache/util: Resolve -Wsign-compare warning Resolves a -Wsign-compare warning on Clang. --- src/video_core/texture_cache/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 CalculateMipLevelOffsets(const ImageInfo& info) noexcept { - ASSERT(info.resources.levels <= MAX_MIP_LEVELS); + ASSERT(info.resources.levels <= static_cast(MAX_MIP_LEVELS)); const LevelInfo level_info = MakeLevelInfo(info); std::array offsets{}; u32 offset = 0;