fix for 32-bit build

pull/54/head
stoffu 7 years ago
parent 18310de526
commit 2f017e7876
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012

@ -8,6 +8,9 @@ project(${PROJECT_NAME})
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -std=c++11")
if(CMAKE_SIZEOF_VOID_P EQUAL "4")
add_definitions(-DMDB_VL32)
endif()
if (NOT MONERO_DIR)
set(MONERO_DIR ~/monero)

@ -812,7 +812,7 @@ namespace lmdb {
static inline bool cursor_get(MDB_cursor* cursor, MDB_val* key, MDB_val* data, MDB_cursor_op op);
static inline void cursor_put(MDB_cursor* cursor, MDB_val* key, MDB_val* data, unsigned int flags);
static inline void cursor_del(MDB_cursor* cursor, unsigned int flags);
static inline void cursor_count(MDB_cursor* cursor, std::size_t& count);
static inline void cursor_count(MDB_cursor* cursor, mdb_size_t& count);
}
/**
@ -916,7 +916,7 @@ lmdb::cursor_del(MDB_cursor* const cursor,
*/
static inline void
lmdb::cursor_count(MDB_cursor* const cursor,
std::size_t& count) {
mdb_size_t& count) {
const int rc = ::mdb_cursor_count(cursor, &count);
if (rc != MDB_SUCCESS) {
error::raise("mdb_cursor_count", rc);

Loading…
Cancel
Save