1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-01 01:04:50 +03:00

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.
This commit is contained in:
Heikki Linnakangas 2015-07-27 21:48:51 +03:00
parent d7fd22a38f
commit 5533a272dd

View File

@ -465,7 +465,7 @@ typedef struct spgxlogAddNode
* -1: parent not updated * -1: parent not updated
*---- *----
*/ */
char parentBlk; int8 parentBlk;
OffsetNumber offnumParent; /* offset within the parent page */ OffsetNumber offnumParent; /* offset within the parent page */
uint16 nodeI; uint16 nodeI;