mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 03:27:56 -05:00
video_core: Silence signed/unsigned mismatch warnings
This commit is contained in:
@ -394,7 +394,7 @@ template <u32 GOB_EXTENT>
|
||||
const s32 mip_offset = diff % layer_stride;
|
||||
const std::array offsets = CalculateMipLevelOffsets(new_info);
|
||||
const auto end = offsets.begin() + new_info.resources.levels;
|
||||
const auto it = std::find(offsets.begin(), end, mip_offset);
|
||||
const auto it = std::find(offsets.begin(), end, static_cast<u32>(mip_offset));
|
||||
if (it == end) {
|
||||
// Mipmap is not aligned to any valid size
|
||||
return std::nullopt;
|
||||
|
Reference in New Issue
Block a user