mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user