summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-07-19 14:48:57 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-07-19 14:49:05 -0400
commit533522846ba050efe9df740e5916ced87144c8f2 (patch)
tree39379facb4e18d8454120f05846c46751d599a51
parentb990cc38dc64f3333c1c61aba247bfbaea1475f8 (diff)
Silence compiler warning, hopefully.
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.GJ1859@paquier.xyz
-rw-r--r--src/timezone/zic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c
index 4483c3bb130..95ab8547126 100644
--- a/src/timezone/zic.c
+++ b/src/timezone/zic.c
@@ -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;
}