Silence compiler warning, hopefully.
authorTom Lane
Fri, 19 Jul 2019 18:48:57 +0000 (14:48 -0400)
committerTom Lane
Fri, 19 Jul 2019 18:49:15 +0000 (14:49 -0400)
Absorb commit e5e04c962a5d12eebbf867ca25905b3ccc34cbe0 from upstream
IANA code, in hopes of silencing warnings from MSVC about negating
a bool value.

Discussion: https://postgr.es/m/20190719035347[email protected]

src/timezone/zic.c

index f440065bd91f73eee46d63df94bf9f37d977834c..f7bbe41c52434f24d14469b6ba1531c5503c33e5 100644 (file)
@@ -2398,7 +2398,7 @@ writezone(const char *const name, const char *const string, char version,
        if (pass == 1 && !want_bloat())
        {
            utcnt = stdcnt = thisleapcnt = 0;
-           thistimecnt = -locut - hicut;
+           thistimecnt = -(locut + hicut);
            thistypecnt = thischarcnt = 1;
            thistimelim = thistimei;
        }