From cf6e9461afb158114d0e701cbe13ba695e2795e6 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 10 Jul 2018 10:48:29 +0300 Subject: [PATCH] Fixed comversion warning in bench under msvc --- bench/latency.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/latency.cpp b/bench/latency.cpp index 687565a8..e9a9decc 100644 --- a/bench/latency.cpp +++ b/bench/latency.cpp @@ -31,7 +31,7 @@ void bench_mt(int howmany, std::shared_ptr log, int thread_count int main(int , char *[]) { - std::srand(std::time(nullptr)); // use current time as seed for random generator + std::srand(static_cast(std::time(nullptr))); // use current time as seed for random generator int howmany = 1000000; int queue_size = howmany + 2; int threads = 10;