diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-11 16:12:06 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-11 16:14:10 +0200 |
commit | fc65da5c59f454616ebef0b9b6fd8951b2e17ecf (patch) | |
tree | c638b8af81dc0bec1cd7284827ebc2bf4b9f0138 /ext/date | |
parent | 7f5f277cf2d44ec031e4eeed767c0e0a546eb825 (diff) | |
download | php-git-fc65da5c59f454616ebef0b9b6fd8951b2e17ecf.tar.gz |
Fix 32-bit warnings in timelib
This has already been fixed upstream in
https://github.com/derickr/timelib/commit/4df262e7585b2ad2c6b01a23190974f9aea298ed
so I'm backporting this change.
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/lib/parse_tz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index c8e501151f..65a4d0692f 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -393,7 +393,7 @@ void timelib_dump_tzinfo(timelib_tzinfo *tz) tz->type[0].isgmtcnt ); for (i = 0; i < tz->bit64.timecnt; i++) { - printf ("%016lX (%20ld) = %3d [%5ld %1d %3d '%s' (%d,%d)]\n", + printf ("%016" PRIX64 " (%20" PRId64 ") = %3d [%5ld %1d %3d '%s' (%d,%d)]\n", tz->trans[i], tz->trans[i], tz->trans_idx[i], (long int) tz->type[tz->trans_idx[i]].offset, tz->type[tz->trans_idx[i]].isdst, @@ -404,7 +404,7 @@ void timelib_dump_tzinfo(timelib_tzinfo *tz) ); } for (i = 0; i < tz->bit64.leapcnt; i++) { - printf ("%016lX (%20ld) = %d\n", + printf ("%016" PRIX64 " (%20ld) = %d\n", tz->leap_times[i].trans, (long) tz->leap_times[i].trans, tz->leap_times[i].offset); |