Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0ec2e90

Browse files
committed
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>
1 parent 42651bd commit 0ec2e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timezone/localtime.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ timesub(const pg_time_t *timep, int32 offset,
13791379
int y;
13801380
const int *ip;
13811381
int64 corr;
1382-
bool hit;
1382+
int hit;
13831383
int i;
13841384

13851385
corr = 0;

0 commit comments

Comments
 (0)