diff options
Diffstat (limited to 'tz/strftime.c')
-rw-r--r-- | tz/strftime.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tz/strftime.c b/tz/strftime.c index 4f871cd..5273155 100644 --- a/tz/strftime.c +++ b/tz/strftime.c @@ -335,11 +335,13 @@ label: && tm.tm_sec == tm_1.tm_sec)) return NULL; } - if (TYPE_SIGNED(time_t)) - sprintf(buf, "%"PRIdMAX, - (intmax_t) mkt); - else sprintf(buf, "%"PRIuMAX, - (uintmax_t) mkt); + if (TYPE_SIGNED(time_t)) { + intmax_t n = mkt; + sprintf(buf, "%"PRIdMAX, n); + } else { + uintmax_t n = mkt; + sprintf(buf, "%"PRIuMAX, n); + } pt = _add(buf, pt, ptlim); } continue; |