File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ to first run the tzcode source files through a sed filter like this:
117
117
-e 's/intmax_t/int64/g' \
118
118
-e 's/INT32_MIN/PG_INT32_MIN/g' \
119
119
-e 's/INT32_MAX/PG_INT32_MAX/g' \
120
+ -e 's/INTMAX_MIN/PG_INT64_MIN/g' \
121
+ -e 's/INTMAX_MAX/PG_INT64_MAX/g' \
120
122
-e 's/struct[ \t]+tm\b/struct pg_tm/g' \
121
123
-e 's/\btime_t\b/pg_time_t/g' \
122
124
-e 's/lineno/lineno_t/g' \
Original file line number Diff line number Diff line change @@ -607,17 +607,17 @@ timerange_option(char *timerange)
607
607
{
608
608
errno = 0 ;
609
609
lo = strtoimax (timerange + 1 , & lo_end , 10 );
610
- if (lo_end == timerange + 1 || (lo == INTMAX_MAX && errno == ERANGE ))
610
+ if (lo_end == timerange + 1 || (lo == PG_INT64_MAX && errno == ERANGE ))
611
611
return false;
612
612
}
613
613
hi_end = lo_end ;
614
614
if (lo_end [0 ] == '/' && lo_end [1 ] == '@' )
615
615
{
616
616
errno = 0 ;
617
617
hi = strtoimax (lo_end + 2 , & hi_end , 10 );
618
- if (hi_end == lo_end + 2 || hi == INTMAX_MIN )
618
+ if (hi_end == lo_end + 2 || hi == PG_INT64_MIN )
619
619
return false;
620
- hi -= !(hi == INTMAX_MAX && errno == ERANGE );
620
+ hi -= !(hi == PG_INT64_MAX && errno == ERANGE );
621
621
}
622
622
if (* hi_end || hi < lo || max_time < lo || hi < min_time )
623
623
return false;
You can’t perform that action at this time.
0 commit comments