From: Hallvard Furuseth Date: Wed, 11 Dec 2013 10:57:13 +0000 (+0100) Subject: Replace MDB_node.mn_offset[], to ease debugging. X-Git-Tag: OPENLDAP_REL_ENG_2_4_39~21^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2ed03642ca325cfe7685d6df782f3b363f9e46c;p=openldap Replace MDB_node.mn_offset[], to ease debugging. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 7de9337dd5..6326dbcd7b 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -701,9 +701,11 @@ typedef struct MDB_node { * They are in host byte order in case that lets some * accesses be optimized into a 32-bit word access. */ -#define mn_lo mn_offset[BYTE_ORDER!=LITTLE_ENDIAN] -#define mn_hi mn_offset[BYTE_ORDER==LITTLE_ENDIAN] /**< part of dsize or pgno */ - unsigned short mn_offset[2]; /**< storage for #mn_lo and #mn_hi */ +#if BYTE_ORDER == LITTLE_ENDIAN + unsigned short mn_lo, mn_hi; /**< part of data size or pgno */ +#else + unsigned short mn_hi, mn_lo; +#endif /** @defgroup mdb_node Node Flags * @ingroup internal * Flags for node headers.