Skip to content

Commit ce721a5

Browse files
authored
Merge pull request #58 from henrikedin/master
Fix C4477 warnings in timelib_dump_tzinfo() when compiling with MSVC
2 parents 8d07191 + 4df262e commit ce721a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)