orlp / pdqsort

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

Fix MSVC 2015 warning when sorting vector<size_t> #9

Closed bmharper closed 4 years ago

bmharper commented 6 years ago

MSVC 2015 would produce a warning 4244 (conversion from int64 to int) on both of these code lines, when compiling to x64, and sorting a vector.

As far as I can tell, these casts will not alter the behaviour of pdqsort.

orlp commented 4 years ago

Took a while to get around, but I fixed this is the most recent commit.