Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: ef0a8475fdfef2bfeb82df0df1e8cc211790721e https://github.com/Perl/perl5/commit/ef0a8475fdfef2bfeb82df0df1e8cc211790721e Author: Karl Williamson <k...@cpan.org> Date: 2020-11-22 (Sun, 22 Nov 2020)
Changed paths: M ext/POSIX/POSIX.xs M ext/POSIX/lib/POSIX.pm M inline.h M pp_ctl.c M sv.c Log Message: ----------- Slience compiler warnings for NV, [IU]V compare These were occurring on FreeBSD smokes. warning: implicit conversion from 'IV' (aka 'long') to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-int-float-conversion] 9223372036854775807 is IV_MAX. What needed to be done here was to use the NV containing IV_MAX+1, a value that already exists in perl.h In other instances, simply casting to an NV before doing the comparison with the NV was what was needed. This fixes #18328