diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-09-27 09:25:29 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-09-27 09:25:29 -0700 |
commit | b197e565acf60f96ba64f2ddf30c8c62d7ab5515 (patch) | |
tree | 2f50ae1ffc430ee79112b1ac9477dbccee7aa59f /pp_pack.c | |
parent | 99f450ccc8a751e24ad7370e10cee6a4f56600c2 (diff) | |
download | perl-b197e565acf60f96ba64f2ddf30c8c62d7ab5515.tar.gz |
pp_pack.c: S_sv_check_inf =~ /$/nan/
At Jarkko Hietaniemi’s suggestion.
Diffstat (limited to 'pp_pack.c')
-rw-r--r-- | pp_pack.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2083,7 +2083,7 @@ S_sv_exp_grow(pTHX_ SV *sv, STRLEN needed) { } static void -S_sv_check_inf(pTHX_ SV *sv, I32 datumtype) +S_sv_check_infnan(pTHX_ SV *sv, I32 datumtype) { SvGETMAGIC(sv); if (UNLIKELY(isinfnansv(sv))) { @@ -2096,8 +2096,8 @@ S_sv_check_inf(pTHX_ SV *sv, I32 datumtype) } } -#define SvIV_no_inf(sv,d) (S_sv_check_inf(aTHX_ sv,d), SvIV_nomg(sv)) -#define SvUV_no_inf(sv,d) (S_sv_check_inf(aTHX_ sv,d), SvUV_nomg(sv)) +#define SvIV_no_inf(sv,d) (S_sv_check_infnan(aTHX_ sv,d), SvIV_nomg(sv)) +#define SvUV_no_inf(sv,d) (S_sv_check_infnan(aTHX_ sv,d), SvUV_nomg(sv)) STATIC SV ** @@ -2857,7 +2857,7 @@ S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist ) while (len-- > 0) { NV anv; fromstr = NEXTFROM; - S_sv_check_inf(fromstr, datumtype); + S_sv_check_infnan(fromstr, datumtype); anv = SvNV_nomg(fromstr); if (anv < 0) { |