Closed p5pRT closed 9 years ago
See attached patch. CPP output below to explain error.
C:\perl521\srcnewb4opt\win32>nmake ..\pp_sys.i
OP * Perl_pp_gmtime(PerlInterpreter* my_perl ) { SV **sp = (my_perl->Istack_sp); Time64_T when; struct TM64 tmbuf; struct TM64 *err; const char *opname = (my_perl->Iop)->op_type == OP_LOCALTIME ? "localtime" : "gmtime"; static const char * const dayname[] = {"Sun"\, "Mon"\, "Tue"\, "Wed"\, "Thu"\, "Fri"\, "Sat"}; static const char * const monname[] = {"Jan"\, "Feb"\, "Mar"\, "Apr"\, "May"\, "Jun"\, "Jul"\, "Aug"\, "Sep"\, "Oct"\, "Nov"\, "Dec"};
if (((my_perl->Iop)->op_private & 0x0f) \< 1 || (!(*sp) &&
((void)(*sp--)\, 1))) {
time_t now;
(void)time(&now);
when = (Time64_T)now;
}
else {
NV input = floor(((((my_perl->ISv) = ((*sp--)))\,
(((((my_perl->ISv))->sv_flags & (0x00000200|0x00200000)) == 0x00000200)
? ((XPVNV*) ((my_perl->ISv))->sv_any)->xnv_u.xnv_nv :
Perl_sv_2nv_flags(my_perl\, (my_perl->ISv)\,2)))));
const char _isnan = _isnan(input);
when = (Time64_T)input;
if ((((_isnan || when != input) ? (char)1 : (char)0))) {
Perl_ck_warner(my_perl\, (15 )\,
"%s(%.0" "f" ") too large"\, opname\, input);
if (_isnan) {
err = 0;
goto failed;
}
}
}
On Thu Dec 25 21:39:00 2014\, bulk88 wrote:
This is a bug report for perl from bulk88@hotmail.com\, generated with the help of perlbug 1.40 running under perl 5.21.7.
----------------------------------------------------------------- [Please describe your issue here]
See attached patch. CPP output below to explain error.
Thank you. I was rather puzzled by that failure. I have applied your patch as 2b9215fdb83c9.
--
Father Chrysostomos
The RT System itself - Status changed from 'new' to 'open'
@cpansprout - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#123502 (status was 'resolved')
Searchable as RT123502$