BUG: fix compilation error for VS 141 and earlier#21366
Conversation
|
The CI runs VS 2019 and will not test the other I had to |
|
The test failure looks similar to the previous failures of the cygwin and simd runs, the error message is not informative. I'll try fixing it later. @serge-sans-paille Does this look right to you. |
|
Looks good to me! https://godbolt.org/z/YohW1Tdd8 |
|
Close/reopen |
| if (arrsize > 1) { | ||
| qsort_<vector<npy_int>, npy_int>((npy_int *)arr, 0, arrsize - 1, | ||
| 2 * log2(arrsize)); | ||
| 2 * (npy_int)log2(arrsize)); |
There was a problem hiding this comment.
Hmm. I don't know if this even matters much, but could do (npy_int)(2 * log2(arrsize)));
|
Let's give this a shot. I do worry about the complexity of this implementation of quicksort, but that is a bigger problem. Thanks Matti. |
Compilers before vs 1922 are missing the
_knot_mask16intrinsic, use a simpleNOTinstead.Also clean up a few stray
npy_intp/npy_intwarnings.Fixes #21346
I verified the compiler version using https://godbolt.org/z/KMYhzaM1e.