diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-05 15:31:56 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-05 15:35:46 -0400 |
commit | 93b84e9308935cdd228df43febab577edd75480d (patch) | |
tree | 7387e722a8345f8a5c65d5343cb0363b13e338f8 | |
parent | 33db37e66923ef90a4071910eea06c79c077cc15 (diff) |
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: u64 prios = mlq.used_priorities; prios &= ~((1ULL << (current_priority + 1)) - 1); if (prios == 0) { - current_priority = mlq.depth(); + current_priority = static_cast<u32>(mlq.depth()); } else { current_priority = CountTrailingZeroes64(prios); it = GetBeginItForPrio(); |