Skip to content

Commit fc65da5

Browse files
committed
Fix 32-bit warnings in timelib
This has already been fixed upstream in derickr/timelib@4df262e so I'm backporting this change.
1 parent 7f5f277 commit fc65da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/date/lib/parse_tz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ void timelib_dump_tzinfo(timelib_tzinfo *tz)
393393
tz->type[0].isgmtcnt
394394
);
395395
for (i = 0; i < tz->bit64.timecnt; i++) {
396-
printf ("%016lX (%20ld) = %3d [%5ld %1d %3d '%s' (%d,%d)]\n",
396+
printf ("%016" PRIX64 " (%20" PRId64 ") = %3d [%5ld %1d %3d '%s' (%d,%d)]\n",
397397
tz->trans[i], tz->trans[i], tz->trans_idx[i],
398398
(long int) tz->type[tz->trans_idx[i]].offset,
399399
tz->type[tz->trans_idx[i]].isdst,
@@ -404,7 +404,7 @@ void timelib_dump_tzinfo(timelib_tzinfo *tz)
404404
);
405405
}
406406
for (i = 0; i < tz->bit64.leapcnt; i++) {
407-
printf ("%016lX (%20ld) = %d\n",
407+
printf ("%016" PRIX64 " (%20ld) = %d\n",
408408
tz->leap_times[i].trans,
409409
(long) tz->leap_times[i].trans,
410410
tz->leap_times[i].offset);

0 commit comments

Comments
 (0)