Explorar o código

common/multi_level_queue: Silence truncation warning in iterator operator++

Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
93b84e9308
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/multi_level_queue.h

+ 1 - 1
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();