From 2078ce01cf3afb9ff952bcd4f6d52115b94bcade Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:50:47 +0000 Subject: [PATCH] try shamap fix Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- src/libxrpl/shamap/SHAMapNodeID.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libxrpl/shamap/SHAMapNodeID.cpp b/src/libxrpl/shamap/SHAMapNodeID.cpp index a32ff5c28e..303718b1ef 100644 --- a/src/libxrpl/shamap/SHAMapNodeID.cpp +++ b/src/libxrpl/shamap/SHAMapNodeID.cpp @@ -77,7 +77,8 @@ SHAMapNodeID::getChildNodeID(unsigned int m) const Throw( "Request for child node ID of " + to_string(*this)); - if (id_ != (id_ & depthMask(depth_))) + auto const idAtDepth = id_ & depthMask(depth_); + if (id_ != idAtDepth) Throw("Incorrect mask for " + to_string(*this)); SHAMapNodeID node{depth_ + 1, id_};