postgres.git / summary / log / commit / refs

commit    5533a272ddecff18f16e9b6c307dcb2e130538f4
Author:   Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date:     Mon Jul 27 18:48:51 2015 +0000

    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.


src/include/access/spgist_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/access/spgist_private.h b/src/include/access/spgist_private.h index 48dadd5b2c6..fae10501a24 100644 --- a/src/include/access/spgist_private.h +++ b/src/include/access/spgist_private.h @@ -465,7 +465,7 @@ typedef struct spgxlogAddNode * -1: parent not updated *---- */ - char parentBlk; + int8 parentBlk; OffsetNumber offnumParent; /* offset within the parent page */ uint16 nodeI; [parent: d7fd22a38ff4]