try shamap fix

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-01-26 15:50:47 +00:00
parent 2770a9cdf3
commit 2078ce01cf

View File

@@ -77,7 +77,8 @@ SHAMapNodeID::getChildNodeID(unsigned int m) const
Throw<std::logic_error>(
"Request for child node ID of " + to_string(*this));
if (id_ != (id_ & depthMask(depth_)))
auto const idAtDepth = id_ & depthMask(depth_);
if (id_ != idAtDepth)
Throw<std::logic_error>("Incorrect mask for " + to_string(*this));
SHAMapNodeID node{depth_ + 1, id_};