bmatsuo / lmdb-go

Bindings for the LMDB C library
BSD 3-Clause "New" or "Revised" License
157 stars 59 forks source link

lmdb: use 31-bit lengths when on 32-bit architectures #83

Closed bmatsuo closed 8 years ago

bmatsuo commented 8 years ago

Fixes #81

The package detects architecture bit-width using techniques from the runtime package to avoid duplication and omission of code for various architectures.

The architecture detection hacks are moved to their own internal package to avoid golint complaining about weird looking constant formulae.

michael2m commented 8 years ago

Retried on target device (ARMv7, 32bit) and compilation succeeds.