Skip to content

Commit 5533a27

Browse files
committed
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.
1 parent d7fd22a commit 5533a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/access/spgist_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ typedef struct spgxlogAddNode
465465
* -1: parent not updated
466466
*----
467467
*/
468-
char parentBlk;
468+
int8 parentBlk;
469469
OffsetNumber offnumParent; /* offset within the parent page */
470470

471471
uint16 nodeI;

0 commit comments

Comments
 (0)