diff options
| author | 2019-04-05 15:31:56 -0400 | |
|---|---|---|
| committer | 2019-04-05 15:35:46 -0400 | |
| commit | 93b84e9308935cdd228df43febab577edd75480d (patch) | |
| tree | 7387e722a8345f8a5c65d5343cb0363b13e338f8 | |
| parent | common/bit_util: Make CountLeading/CountTrailing functions have the same retu... (diff) | |
| download | yuzu-93b84e9308935cdd228df43febab577edd75480d.tar.gz yuzu-93b84e9308935cdd228df43febab577edd75480d.tar.xz yuzu-93b84e9308935cdd228df43febab577edd75480d.zip | |
common/multi_level_queue: Silence truncation warning in iterator operator++
| -rw-r--r-- | src/common/multi_level_queue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/multi_level_queue.h b/src/common/multi_level_queue.h index 2b61b91e0..9cb448f56 100644 --- a/src/common/multi_level_queue.h +++ b/src/common/multi_level_queue.h | |||
| @@ -72,7 +72,7 @@ public: | |||
| 72 | u64 prios = mlq.used_priorities; | 72 | u64 prios = mlq.used_priorities; |
| 73 | prios &= ~((1ULL << (current_priority + 1)) - 1); | 73 | prios &= ~((1ULL << (current_priority + 1)) - 1); |
| 74 | if (prios == 0) { | 74 | if (prios == 0) { |
| 75 | current_priority = mlq.depth(); | 75 | current_priority = static_cast<u32>(mlq.depth()); |
| 76 | } else { | 76 | } else { |
| 77 | current_priority = CountTrailingZeroes64(prios); | 77 | current_priority = CountTrailingZeroes64(prios); |
| 78 | it = GetBeginItForPrio(); | 78 | it = GetBeginItForPrio(); |