address test failure
This commit is contained in:
parent
20d6f2a3c3
commit
feca59b205
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue