>From e5e04c962a5d12eebbf867ca25905b3ccc34cbe0 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Fri, 19 Jul 2019 09:19:46 -0700
Subject: [PATCH] Clarify bool calculation

* zic.c (writezone): Redo a calculation involving bool values for
clarity.  (Problem reported by Tom Lane, and solution based on a
suggestion by Clive D.W. Feather.)
---
 zic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zic.c b/zic.c
index 8bf5628..a84703a 100644
--- a/zic.c
+++ b/zic.c
@@ -2145,7 +2145,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;
 		}
-- 
2.17.1

