com php-src: Fix 32-bit warnings in timelib: ext/date/lib/parse _tz.c
| From: | Nikita Popov | Date: | Tue, 11 Jun 2019 14:14:10 +0000 |
| Subject: | com php-src: Fix 32-bit warnings in timelib: ext/date/lib/parse _tz.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106677@lists.php.net to get a copy of this message | ||
Commit: fc65da5c59f454616ebef0b9b6fd8951b2e17ecf
Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 11 Jun 2019 16:12:06 +0200
Parents: 7f5f277cf2d44ec031e4eeed767c0e0a546eb825
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fc65da5c59f454616ebef0b9b6fd8951b2e17ecf
Log:
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.
Changed paths:
M ext/date/lib/parse_tz.c
Diff:
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c
index c8e5011..65a4d06 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);