diff options
author | Merry <git@mary.rs> | 2023-02-21 22:36:20 +0100 |
---|---|---|
committer | Merry <git@mary.rs> | 2023-02-21 22:39:17 +0100 |
commit | c9678bda2440423ec55d420aedd9a11d79834649 (patch) | |
tree | a08342651979d1eb652053efe35faa0136fbfab0 /src/video_core/buffer_cache/buffer_base.h | |
parent | Merge pull request #9834 from german77/reverted (diff) | |
download | yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.gz yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.bz2 yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.lz yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.xz yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.zst yuzu-c9678bda2440423ec55d420aedd9a11d79834649.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/buffer_cache/buffer_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index 92d77eef2..1b4d63616 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -568,7 +568,7 @@ private: const u64* const state_words = Array<type>(); const u64 num_query_words = size / BYTES_PER_WORD + 1; const u64 word_begin = offset / BYTES_PER_WORD; - const u64 word_end = std::min(word_begin + num_query_words, NumWords()); + const u64 word_end = std::min<u64>(word_begin + num_query_words, NumWords()); const u64 page_base = offset / BYTES_PER_PAGE; const u64 page_limit = Common::DivCeil(offset + size, BYTES_PER_PAGE); u64 begin = std::numeric_limits<u64>::max(); |