Skip to content

Commit 1b7f125

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 d09c873 commit 1b7f125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/access/spgist_private.h

+1-1
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)