diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2015-02-10 13:26:50 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-02-10 18:45:10 -0500 |
commit | c9a671b17a9c588469bcef958038daaaaf9cc88b (patch) | |
tree | 81dde95418d9ae3e70b2e13cbf09733fdc973da0 /numeric.c | |
parent | 99fcdd4df47515fb0a62a046e622adec0871754d (diff) | |
download | perl-c9a671b17a9c588469bcef958038daaaaf9cc88b.tar.gz |
infnan: change the invalid nan message, add to perldiag
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) { |