mdbx: fix MDBX_node for big-endian.

Change-Id: I436fc01e379908df07bcb829f0d9cf6999c8c133
This commit is contained in:
Leonid Yuriev 2019-10-16 14:22:38 +03:00
parent 0f3994d506
commit a907109cce

View File

@ -1270,10 +1270,11 @@ typedef struct MDBX_node {
uint16_t mn_ksize; /* key size */ uint16_t mn_ksize; /* key size */
uint16_t mn_flags; /* see mdbx_node */ uint16_t mn_flags; /* see mdbx_node */
union { union {
uint32_t mn_pgno32;
uint32_t mn_dsize;
struct { struct {
uint16_t mn_hi, mn_lo; /* part of data size or pgno */ uint16_t mn_hi, mn_lo; /* part of data size or pgno */
}; };
uint32_t mn_dsize;
}; };
#endif #endif