diff --git a/util/heap_test.cc b/util/heap_test.cc index e810a7186..dd73e11a0 100644 --- a/util/heap_test.cc +++ b/util/heap_test.cc @@ -8,6 +8,7 @@ #include #include +#include #include #include "util/heap.h" @@ -49,7 +50,7 @@ TEST_P(HeapTest, Test) { BinaryHeap heap; std::priority_queue ref; - std::mt19937 rng(RNG_SEED); + std::mt19937 rng(static_cast(RNG_SEED)); std::uniform_int_distribution value_dist(0, MAX_VALUE); int ndrains = 0; bool draining = false; // hit max size, draining until we empty the heap