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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy