summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-01-11 22:58:35 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-01-12 06:45:13 -0500
commit415b66b2c58add39fa4cb119f7eafa5164f33298 (patch)
tree4c1a04b2f74a062a9a70ac91058bcd2db41d5911 /pp_ctl.c
parenteaa9f768d686671c8a8e374a757a584b67c62fd4 (diff)
downloadperl-415b66b2c58add39fa4cb119f7eafa5164f33298.tar.gz
Detect infnan range ends.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index fe5c25b829..37b822cf57 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2095,6 +2095,8 @@ S_outside_integer(pTHX_ SV *sv)
{
if (SvOK(sv)) {
const NV nv = SvNV_nomg(sv);
+ if (Perl_isinfnan(nv))
+ return TRUE;
#ifdef NV_PRESERVES_UV
if (nv < (NV)IV_MIN || nv > (NV)IV_MAX)
return TRUE;