From a907109cce67ced9fbbd9125c5779ef7d069854d Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 16 Oct 2019 14:22:38 +0300 Subject: [PATCH] mdbx: fix MDBX_node for big-endian. Change-Id: I436fc01e379908df07bcb829f0d9cf6999c8c133 --- src/elements/internals.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elements/internals.h b/src/elements/internals.h index 6613adb3..6930d6a1 100644 --- a/src/elements/internals.h +++ b/src/elements/internals.h @@ -1270,10 +1270,11 @@ typedef struct MDBX_node { uint16_t mn_ksize; /* key size */ uint16_t mn_flags; /* see mdbx_node */ union { + uint32_t mn_pgno32; + uint32_t mn_dsize; struct { uint16_t mn_hi, mn_lo; /* part of data size or pgno */ }; - uint32_t mn_dsize; }; #endif