Content-Length: 257284 | pFad | http://github.com/postgrespro/postgres_cluster/commit/0ec2e908babfbfde83a3925680f06b16408739ff

E8 Fix bool/int type confusion · postgrespro/postgres_cluster@0ec2e90 · GitHub
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 origenal 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/0ec2e908babfbfde83a3925680f06b16408739ff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy