orlp / pdqsort

Pattern-defeating quicksort.
zlib License
2.37k stars 102 forks source link

Resolve MSVC++ /W4 warnings in bench.cpp. #7

Closed BillyONeal closed 6 years ago

BillyONeal commented 6 years ago

Each of the benchmark "generate pattern" functions that accepted a size_t then compared that with an int, triggering "signed/unsigned mismatch" warnings. Changed those functions to accept int instead.

argc/argv in main() were unused, triggering unused parameter warnings, those were removed.

A cast was added to the cycles.push_back call to suppress implicit narrowing from double to uint64_t warnings.