On Sat, 8 Feb 2020 at 14:30, sisyphus <sisyphus359@gmail.com> wrote: > A fix for the trunc() problem is to replace: > > ret -= trunc(ret); > with: > #ifdef _MSC_VER > ret -= ret > 0 ? floor(ret) : ceil(ret); > #else > ret -= trunc(ret); > #endif > >> >> Xenu posted a different patch as a PR against Scalar-List-Util: https://github.com/Dual-Life/Scalar-List-Utils/pull/98 Please dont forget the commit from my pull request to silence the signed/unsigned warnings in List::Util::sample() https://github.com/Dual-Life/Scalar-List-Utils/pull/97/commits/ece2617bb7131d1cc266d6308ebefaf7768b80f1 Cheers, Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"Thread Previous | Thread Next