From 4a7625950f5d64525d46a4b03656cbd36532af71 Mon Sep 17 00:00:00 2001 From: wq Date: Tue, 5 Jul 2022 19:12:00 +0800 Subject: [PATCH] Update Tree.cpp --- src/Tree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tree.cpp b/src/Tree.cpp index 8bd0917..dd7fc69 100644 --- a/src/Tree.cpp +++ b/src/Tree.cpp @@ -81,8 +81,8 @@ Tree::Tree(DSM *dsm, uint16_t tree_id) : dsm(dsm), tree_id(tree_id) { void Tree::print_verbose() { - constexpr int kLeafHdrOffset = STRUCT_OFFSET(LeafPage, hdr); - constexpr int kInternalHdrOffset = STRUCT_OFFSET(InternalPage, hdr); + int kLeafHdrOffset = STRUCT_OFFSET(LeafPage, hdr); + int kInternalHdrOffset = STRUCT_OFFSET(InternalPage, hdr); static_assert(kLeafHdrOffset == kInternalHdrOffset, "XXX"); if (dsm->getMyNodeID() == 0) { @@ -1237,4 +1237,4 @@ void Tree::clear_statistics() { cache_hit[i][0] = 0; cache_miss[i][0] = 0; } -} \ No newline at end of file +}