Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coMFG-00038g-7W for pgsql-committers@arkaria.postgresql.org; Thu, 16 Mar 2017 03:38:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coMFF-0005wu-QV for pgsql-committers@arkaria.postgresql.org; Thu, 16 Mar 2017 03:38:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coMF1-0005Xi-DD for pgsql-committers@postgresql.org; Thu, 16 Mar 2017 03:38:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coMEz-0007Pa-H7 for pgsql-committers@postgresql.org; Thu, 16 Mar 2017 03:38:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2G3cGPS020684; Wed, 15 Mar 2017 23:38:16 -0400 From: Tom Lane To: Stephen Frost cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Clean up overly paranoid checks in mac8.c In-reply-to: <20566.1489635344@sss.pgh.pa.us> References: <20566.1489635344@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 15 Mar 2017 23:35:44 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20682.1489635496.1@sss.pgh.pa.us> Date: Wed, 15 Mar 2017 23:38:16 -0400 Message-ID: <20683.1489635496@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org I wrote: > Stephen Frost writes: >> Clean up overly paranoid checks in mac8.c > termite thinks this wasn't quite right. On looking at it a bit more closely, I think you've forgotten that "char" is signed on some platforms and unsigned on others. I'd suggest putting explicit casts to unsigned char into these tests. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers