address test failure

This commit is contained in:
Markus Pilman 2020-05-06 15:51:53 -07:00
parent 20d6f2a3c3
commit feca59b205
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include <stdint.h>
#include "fdbclient/FDBTypes.h"
#include "flow/Arena.h"
#include "flow/Platform.h"
@ -50,7 +51,7 @@ struct art_tree {
//#define ART_IS_LEAF(x) ( (*((ART_NODE_TYPE*)x) == ART_LEAF))
template<class T>
static inline bool ART_IS_LEAF(T const& x) {
return reinterpret_cast<ART_NODE_TYPE const&>(x) == ART_LEAF;
return *((ART_NODE_TYPE*)x) == ART_LEAF;
}
#define ART_LEAF_RAW(x) ((art_leaf*)(x))