postgres.git / summary / log / commit / refs

commit    0ec2e908babfbfde83a3925680f06b16408739ff
Author:   Peter Eisentraut <peter_e@gmx.net>
Date:     Wed Aug 16 04:22:32 2017 +0000

    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>


src/timezone/localtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; [parent: 42651bdd68a1]