parse-date: fix printf format
warning on 32bit systems: ../lib/parse-date.y: In function 'parse_date': ../lib/parse-date.y:1509:7: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'intmax_t' [-Wformat=] abs_time_zone_min); ^ Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
8d7370e01c
commit
fc77d25f97
|
@ -1503,7 +1503,7 @@ int parse_date(struct timespec *result, char const *p,
|
|||
|
||||
if (!tz_was_altered)
|
||||
tz0 = get_tz (tz0buf);
|
||||
sprintf (tz1buf, "XXX%s%ld:%02d",
|
||||
sprintf (tz1buf, "XXX%s%jd:%02d",
|
||||
&"-"[time_zone < 0],
|
||||
abs_time_zone_hour,
|
||||
abs_time_zone_min);
|
||||
|
|
Loading…
Reference in New Issue