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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy