mirror of
https://github.com/postgres/postgres.git
synced 2025-05-20 00:03:14 -04:00
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:
parent
42651bdd68
commit
0ec2e908ba
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user