This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv.c: more imprecision warnings on increment/decrement
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>
Mon, 7 Dec 2020 14:47:07 +0000 (23:47 +0900)
committerKarl Williamson <khw@cpan.org>
Tue, 29 Dec 2020 13:22:35 +0000 (06:22 -0700)
commitce122704aea566d341329194a0eab92bf3d9deca
treeb9018d9667419d26ec4cad6538bcc3df89b285b1
parent069831c529609317bcba91d61b3bc6568463d8ad
sv.c: more imprecision warnings on increment/decrement

Previously, imprecision warnings on increment (Lost precision when
incrementing %f by 1) were only issued on positive finite values,
and, on decrement, only issued on negative finite values.
This commit extends this warnings on both sign and infinite values.

This fixes GH #18333.
sv.c
t/op/inc.t