diff options
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r-- | ext/date/lib/timelib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c index 47ddfa7d87..b2da6f86c9 100644 --- a/ext/date/lib/timelib.c +++ b/ext/date/lib/timelib.c @@ -122,7 +122,7 @@ timelib_tzinfo *timelib_tzinfo_clone(timelib_tzinfo *tz) tmp->timecnt = tz->timecnt; tmp->typecnt = tz->typecnt; tmp->charcnt = tz->charcnt; - + tmp->trans = (int32_t *) malloc(tz->timecnt * sizeof(int32_t)); tmp->trans_idx = (unsigned char*) malloc(tz->timecnt * sizeof(unsigned char)); memcpy(tmp->trans, tz->trans, tz->timecnt * sizeof(int32_t)); @@ -236,7 +236,7 @@ void timelib_dump_date(timelib_time *d, int options) if ((options & 1) == 1) { if (d->have_relative) { - printf("%3lldY %3lldM %3lldD / %3lldH %3lldM %3lldS", + printf("%3lldY %3lldM %3lldD / %3lldH %3lldM %3lldS", d->relative.y, d->relative.m, d->relative.d, d->relative.h, d->relative.i, d->relative.s); if (d->relative.first_last_day_of != 0) { switch (d->relative.first_last_day_of) { @@ -271,7 +271,7 @@ void timelib_dump_date(timelib_time *d, int options) void timelib_dump_rel_time(timelib_rel_time *d) { - printf("%3lldY %3lldM %3lldD / %3lldH %3lldM %3lldS (days: %lld)%s", + printf("%3lldY %3lldM %3lldD / %3lldH %3lldM %3lldS (days: %lld)%s", d->y, d->m, d->d, d->h, d->i, d->s, d->days, d->invert ? " inverted" : ""); if (d->first_last_day_of != 0) { switch (d->first_last_day_of) { |