pgsql: Don't assume that 'char' is signed. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Don't assume that 'char' is signed.
Date
Msg-id E1ZJnYH-00058S-DS@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1b7f125bf7e74fb3b128b3bcbe593d9e7327ff50

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


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't assume that 'char' is signed.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix pointer-arithmetic thinko in pg_stat_ssl patch.