From feca59b205fc8daf68a57858e23a82f8684dfef4 Mon Sep 17 00:00:00 2001 From: Markus Pilman Date: Wed, 6 May 2020 15:51:53 -0700 Subject: [PATCH] address test failure --- fdbserver/art.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdbserver/art.h b/fdbserver/art.h index 9656b31fc3..c25f8dafc7 100644 --- a/fdbserver/art.h +++ b/fdbserver/art.h @@ -20,6 +20,7 @@ #include +#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 static inline bool ART_IS_LEAF(T const& x) { - return reinterpret_cast(x) == ART_LEAF; + return *((ART_NODE_TYPE*)x) == ART_LEAF; } #define ART_LEAF_RAW(x) ((art_leaf*)(x))