mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Fixed comversion warning in bench under msvc
This commit is contained in:
parent
97c201297f
commit
cf6e9461af
@ -31,7 +31,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> 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<unsigned>(std::time(nullptr))); // use current time as seed for random generator
|
||||
int howmany = 1000000;
|
||||
int queue_size = howmany + 2;
|
||||
int threads = 10;
|
||||
|
Loading…
Reference in New Issue
Block a user