Fix bool/int type confusion

Using ++ on a bool variable doesn't work well when stdbool.h is in use.
The original BSD code appears to use int here, so use that instead.

Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
This commit is contained in:
Peter Eisentraut 2017-08-16 00:22:32 -04:00
parent 42651bdd68
commit 0ec2e908ba
1 changed files with 1 additions and 1 deletions

View File

@ -1379,7 +1379,7 @@ timesub(const pg_time_t *timep, int32 offset,
int y;
const int *ip;
int64 corr;
bool hit;
int hit;
int i;
corr = 0;