diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-10 11:18:04 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-10 12:00:15 -0400 |
commit | 8e3e9c6c080c2286b374eb44d1e68e86bb970982 (patch) | |
tree | dfdc0ef434b19341d2c3bf58221c32007f334652 /pp_sys.c | |
parent | 4408dffcc9ed4ee9388b66ef1f6fed0053f3b389 (diff) | |
download | perl-8e3e9c6c080c2286b374eb44d1e68e86bb970982.tar.gz |
No need to print an int as a %0.f
The note about %lld being broken is probably quite obsolete.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -4570,16 +4570,14 @@ PP(pp_gmtime) if (err == NULL) RETPUSHUNDEF; else { - mPUSHs(Perl_newSVpvf(aTHX_ "%s %s %2d %02d:%02d:%02d %.0f", + mPUSHs(Perl_newSVpvf(aTHX_ "%s %s %2d %02d:%02d:%02d %"IVdf, dayname[tmbuf.tm_wday], monname[tmbuf.tm_mon], tmbuf.tm_mday, tmbuf.tm_hour, tmbuf.tm_min, tmbuf.tm_sec, - /* XXX newSVpvf()'s %lld type is broken, - * so cheat with a double */ - (double)tmbuf.tm_year + 1900)); + (IV)tmbuf.tm_year + 1900)); } } else { /* list context */ |