orlp / pdqsort

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

Compile warnings MSVC142/143 #22

Open mrboojum opened 2 years ago

mrboojum commented 2 years ago

When sorting 64 bit ints I got some warnings on windows/MSVC142 pdqsort\pdqsort.h(278,26): warning C4244: 'initializing': conversion from 'int64' to 'int', possible loss of data ... pdqsort\pdqsort.h(143,1): warning C4244: '+=': conversion from 'int64' to 'int', possible loss of data

I can resolve them locally by replacing int with int64

orlp commented 2 years ago

I think you have an outdated version of pdqsort.h, can you update it and see if that resolves it?