fix initialization type

This commit is contained in:
Filip Sykala 2022-05-09 17:02:55 +02:00
parent 436a454b2e
commit effad3a6f8

View File

@ -356,7 +356,7 @@ TEST_CASE("Mutable priority queue - first pop", "[MutableSkipHeapPriorityQueue]"
[](MyValue &l, MyValue &r) { return l.val < r.val; }); [](MyValue &l, MyValue &r) { return l.val < r.val; });
q.reserve(count); q.reserve(count);
for (size_t id = 0; id < count; id++) { for (size_t id = 0; id < count; id++) {
MyValue mv{ id, rand()}; MyValue mv{ id, rand() / 100.f };
q.push(mv); q.push(mv);
} }
MyValue it = q.top(); // copy MyValue it = q.top(); // copy