From c5bca53198054fba6cf501ba6695b9740c42f88e Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 16 Jul 2015 11:22:21 +0200 Subject: [PATCH] Fix compile on Mac Summary: as title Test Plan: compiles Reviewers: lovro Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D42411 --- util/heap_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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