From: Paul Eggert Date: Sun, 22 Nov 2020 03:04:10 +0000 (-0800) Subject: parse-datetime: fix printf format typo X-Git-Tag: v1.0~3481 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fdf0468198631a456406edc09983972edb8fa5c4;p=gnulib.git parse-datetime: fix printf format typo * lib/parse-datetime.y (parse_datetime2): Fix format typo in previous patch to this file. Problem reported by Chris Elvidge in . --- diff --git a/ChangeLog b/ChangeLog index de92d102e6..229945e862 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-11-21 Paul Eggert + parse-datetime: fix printf format typo + * lib/parse-datetime.y (parse_datetime2): Fix format typo in + previous patch to this file. Problem reported by Chris Elvidge in + . + setlocale-null-tests: work around GCC bug 44511 * tests/test-setlocale_null-mt-all.c: * tests/test-setlocale_null-mt-one.c: diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y index 44ae903502..e8ed691c8f 100644 --- a/lib/parse-datetime.y +++ b/lib/parse-datetime.y @@ -2298,7 +2298,8 @@ parse_datetime2 (struct timespec *result, char const *p, "%+"PRIdMAX" seconds, %+d ns),\n"), pc.rel.hour, pc.rel.minutes, pc.rel.seconds, pc.rel.ns); - dbg_printf (_(" new time = %"PRIdMAX" epoch-seconds\n"), t4); + intmax_t t4i = t4; + dbg_printf (_(" new time = %"PRIdMAX" epoch-seconds\n"), t4i); /* Warn about crossing DST due to time adjustment. Example: https://bugs.gnu.org/8357