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 +}