pgsql: Don't assume that 'char' is signed.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't assume that 'char' is signed.
Date: 2015-07-27 18:55:05
Message-ID: E1ZJnYH-00058R-DN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't assume that 'char' is signed.

On some platforms, notably ARM and PowerPC, 'char' is unsigned by
default. This fixes an assertion failure at WAL replay on such platforms.

Reported by Noah Misch. Backpatch to 9.5, where this was broken.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5533a272ddecff18f16e9b6c307dcb2e130538f4

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-07-27 19:59:07 pgsql: Fix pointer-arithmetic thinko in pg_stat_ssl patch.
Previous Message Heikki Linnakangas 2015-07-27 17:45:32 pgsql: Fix memory leaks in pg_rewind. Several PQclear() calls were miss