summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-02-10 13:26:50 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-02-10 18:45:10 -0500
commitc9a671b17a9c588469bcef958038daaaaf9cc88b (patch)
tree81dde95418d9ae3e70b2e13cbf09733fdc973da0 /numeric.c
parent99fcdd4df47515fb0a62a046e622adec0871754d (diff)
downloadperl-c9a671b17a9c588469bcef958038daaaaf9cc88b.tar.gz
infnan: change the invalid nan message, add to perldiag
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/numeric.c b/numeric.c
index 91c298ed5f..bc5913edf7 100644
--- a/numeric.c
+++ b/numeric.c
@@ -692,7 +692,7 @@ Perl_nan_is_signaling(NV nv)
* precision of 128 bits. */
#define MAX_NV_BYTES (128/8)
-static const char nan_payload_error[] = "NaN payload error";
+static const char invalid_nan_payload[] = "Invalid NaN payload";
/*
@@ -775,8 +775,8 @@ Perl_nan_payload_set(pTHX_ NV *nvp, const void *bytes, STRLEN byten, bool signal
*hibyte &= ~mask;
}
if (error) {
- Perl_ck_warner_d(aTHX_ packWARN(WARN_OVERFLOW),
- nan_payload_error);
+ Perl_ck_warner(aTHX_ packWARN(WARN_OVERFLOW),
+ invalid_nan_payload);
}
nan_signaling_set(nvp, signaling);
}
@@ -917,8 +917,8 @@ Perl_grok_nan_payload(pTHX_ const char* s, const char* send, bool signaling, int
}
if (error) {
- Perl_ck_warner_d(aTHX_ packWARN(WARN_OVERFLOW),
- nan_payload_error);
+ Perl_ck_warner(aTHX_ packWARN(WARN_OVERFLOW),
+ invalid_nan_payload);
}
if (s == send) {