diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-16 00:22:32 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-09-14 11:45:11 -0400 |
commit | 0ec2e908babfbfde83a3925680f06b16408739ff (patch) | |
tree | fcbab19984609a07e88c9583f875ac6e6533bf03 | |
parent | 42651bdd68a123544d5bfd0773a170aa3b443f1b (diff) | |
download | postgresql-0ec2e908babfbfde83a3925680f06b16408739ff.tar.gz postgresql-0ec2e908babfbfde83a3925680f06b16408739ff.zip |
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>
-rw-r--r-- | src/timezone/localtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index 08642d12363..82c18e85446 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; |