diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-04-26 21:20:11 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-04-26 21:20:39 -0400 |
commit | b3904abb4d43f59749438735ab3ce3227e9b61b8 (patch) | |
tree | 119998ad4a265595564fae9b1a13a7388d5dc625 /src/timezone/zic.c | |
parent | 22ba955367aedb21566af171623ebbaadcb35ca1 (diff) |
Portability fix for zic.c.
Missed an inttypes.h dependency in previous patch. Per buildfarm.
Diffstat (limited to 'src/timezone/zic.c')
-rw-r--r-- | src/timezone/zic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c index ab10165a267..de8daaee5c9 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -599,7 +599,7 @@ timerange_option(char *timerange) { errno = 0; lo = strtoimax(timerange + 1, &lo_end, 10); - if (lo_end == timerange + 1 || (lo == INTMAX_MAX && errno == ERANGE)) + if (lo_end == timerange + 1 || (lo == PG_INT64_MAX && errno == ERANGE)) return false; } hi_end = lo_end; @@ -607,9 +607,9 @@ timerange_option(char *timerange) { errno = 0; hi = strtoimax(lo_end + 2, &hi_end, 10); - if (hi_end == lo_end + 2 || hi == INTMAX_MIN) + if (hi_end == lo_end + 2 || hi == PG_INT64_MIN) return false; - hi -= !(hi == INTMAX_MAX && errno == ERANGE); + hi -= !(hi == PG_INT64_MAX && errno == ERANGE); } if (*hi_end || hi < lo || max_time < lo || hi < min_time) return false; |