Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coMGl-0003Bh-Au for pgsql-committers@arkaria.postgresql.org; Thu, 16 Mar 2017 03:40:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coMGk-0006Mq-PK for pgsql-committers@arkaria.postgresql.org; Thu, 16 Mar 2017 03:40:06 +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 1coMGW-0005xF-BG for pgsql-committers@postgresql.org; Thu, 16 Mar 2017 03:39:52 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coMGU-0007Q9-8I for pgsql-committers@postgresql.org; Thu, 16 Mar 2017 03:39:51 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D90F55F796; Wed, 15 Mar 2017 23:39:49 -0400 (EDT) Date: Wed, 15 Mar 2017 23:39:49 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Clean up overly paranoid checks in mac8.c Message-ID: <20170316033949.GI9812@tamriel.snowman.net> References: <20566.1489635344@sss.pgh.pa.us> <20683.1489635496@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="O9PDqHng7X/VSOgp" Content-Disposition: inline In-Reply-To: <20683.1489635496@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 23:39:36 up 250 days, 5:03, 21 users, load average: 0.09, 0.17, 0.16 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --O9PDqHng7X/VSOgp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > I wrote: > > Stephen Frost writes: > >> Clean up overly paranoid checks in mac8.c >=20 > > termite thinks this wasn't quite right. >=20 > 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. Right, going through it now and adjusting things to be more careful about that. Thanks! Stephen --O9PDqHng7X/VSOgp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYygkFAAoJEO1sijiDR2RVIFEQAK3rbTeBlLgNB4BiUEbrMglh Qal0vn1I4cJM5KfSZbi3V777wC5yzgVHPL6LCNinb+xf0k+gSw8jOhm3B1TRNsXP 5UvzOwpctMCSKy9PgGCAW9yhPsMBI2sSgL8NdD+nKa6twFQMXlkdICvkU+S5DmUQ 41//g9Ezgo799Tl0a+o6AMcXbLJ/rIT5X3UCXVQGw2C4p/m6zqc2tYuk7v+eeNDp IKuD3WO2mtqXFLOGo8/tuA1Af2x9ollTASaF4SZXG8ATGjn1wsxt2zw4WOPJUNJ4 Hc86vjs43rVahmCPFmELNqWUKM6EO7n0MX1R+bNzvUsa3kaEmapqRb8Q4JAZ+fSr ry/KfFggMMU8iynB0Wr4aqC/cy+wc2FVjUtX9ceDlgVDNik0Ze2i1EMLzoEA9wX+ 3UFlGuzHOo8a8t/8U3GcuJ7FGT5CE/FNYMUVwPgvneMtzW+XoiJ5MpWDxxbR0eX1 ihaAFhIRHaBJ7cl6rOD3s/gO2vfj47Q1U0al2PC4uR7Mnzt+PKxgYDUCDh1KCEGl InNo6ArCJ+xe388ZF5B8SJ6WPvBNsvIh/KxIAx+BWoyxOKsz1VSjrhxD+4/6O5+c cZ1+63t06ff9pdu1Eawl5/k/hBgGJ5bCCbA80zlOtmc/mHhK978wJ0A1aIr1Mjpc Y0SxSK/VOEL3B9Gl+p9E =LLGf -----END PGP SIGNATURE----- --O9PDqHng7X/VSOgp--