pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <rhodiumtoad@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use an unsigned char for bool if we don't use the native bool.
Date: Wed, 20 Feb 2019 22:01:47 +0000
Message-ID: <E1gwZw3-0001XU-2c@gemulon.postgresql.org> (raw)

Use an unsigned char for bool if we don't use the native bool.

On (rare) platforms where sizeof(bool) > 1, we need to use our own
bool, but imported c99 code (such as Ryu) may want to use bool values
as array subscripts, which elicits warnings if bool is defined as
char. Using unsigned char instead should work just as well for our
purposes, and avoid such warnings.

Per buildfarm members prariedog and locust.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d26a810ebf9e419556a60bdc0a4190883c38f4c4

Modified Files
--------------
src/include/c.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1gwZw3-0001XU-2c@gemulon.postgresql.org>
Permalink:  ../E1gwZw3-0001XU-2c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gwZw3-0001XU-2c@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhodiumtoad@postgresql.org
  Subject: Re: pgsql: Use an unsigned char for bool if we don't use the native bool.
  In-Reply-To: <E1gwZw3-0001XU-2c@gemulon.postgresql.org>
  References: <E1gwZw3-0001XU-2c@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox