Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 7e511f6af1284c3490ebea9e18421d6179a77ba5 https://github.com/Perl/perl5/commit/7e511f6af1284c3490ebea9e18421d6179a77ba5 Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com> Date: 2022-02-13 (Sun, 13 Feb 2022)
Changed paths: M sv.c M t/op/infnan.t Log Message: ----------- sv.c: String "Inf" is now consistently converted to IV/UV S_sv_2iuv_common() used to fail to set IV/UV slot on direct conversion from string "Inf" to IV/UV, so such conversion would return garbage on the memory. Now it will return the same result with two-staged conversions, string to NV first and then NV to IV/UV. Commit: 573a2c73805f828cb693378973b3f57d402e05d9 https://github.com/Perl/perl5/commit/573a2c73805f828cb693378973b3f57d402e05d9 Author: TAKAI Kousuke <62541129+t-...@users.noreply.github.com> Date: 2022-02-13 (Sun, 13 Feb 2022) Changed paths: M t/op/infnan.t Log Message: ----------- Add tests for string "-Inf" to IV conversion. While a numeric -Inf is treated as IV_MIN in IV context (such as operands for bitwise operators under "use integer"), string "-Inf" used to yield some random (zero, or previously assigned) value in such context. Compare: https://github.com/Perl/perl5/compare/10e9e4713b05...573a2c73805f