aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-27 21:48:51 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-27 21:51:25 +0300
commit5533a272ddecff18f16e9b6c307dcb2e130538f4 (patch)
tree2ae595621a1f8ab2a5c93750d34741afff2d9628 /src
parentd7fd22a38ff48372c6813983317fc8d1e07fcf87 (diff)
downloadpostgresql-5533a272ddecff18f16e9b6c307dcb2e130538f4.tar.gz
postgresql-5533a272ddecff18f16e9b6c307dcb2e130538f4.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/include/access/spgist_private.h2
1 files changed, 1 insertions, 1 deletions
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;