Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Zcode/tree/node/definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ struct definitions

// digit used to mark node as void.
static const value_type voidbit = fifthfreebit;
// digit used to mark node as to be refined (refineme bit)
static const value_type refineMe = firstfreebit;
//!mask for extracting all, but the void bit:
static const value_type AllExceptVoidbit= allone - voidbit;

Expand Down
4 changes: 2 additions & 2 deletions Zcode/tree/node/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ struct Node: public definitions<Dim, Value>
//! \param N pointer to the Node.
//! \param V tag value
//! \note we do not check V.
inline void setTags(Node &n) const
inline void setTags(const Node &tags)
{
n.value = ((n.value)&partWithoutFreeBits) + (value&FreeBitsPart);
value = ((value)&partWithoutFreeBits) + ((tags.value)&FreeBitsPart);
}

//! return the hash code for nodes.
Expand Down