summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-09-10 11:18:04 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-09-10 12:00:15 -0400
commit8e3e9c6c080c2286b374eb44d1e68e86bb970982 (patch)
treedfdc0ef434b19341d2c3bf58221c32007f334652 /pp_sys.c
parent4408dffcc9ed4ee9388b66ef1f6fed0053f3b389 (diff)
downloadperl-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp_sys.c b/pp_sys.c
index def63b8c4a..a97b040acb 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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 */