summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-08-16 04:22:32 +0000
committerPeter Eisentraut2017-09-14 15:45:11 +0000
commit0ec2e908babfbfde83a3925680f06b16408739ff (patch)
treefcbab19984609a07e88c9583f875ac6e6533bf03
parent42651bdd68a123544d5bfd0773a170aa3b443f1b (diff)
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 <[email protected]>
-rw-r--r--src/timezone/localtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c
index 08642d1236..82c18e8544 100644
--- a/src/timezone/localtime.c
+++ b/src/timezone/localtime.c
@@ -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;