diff --git a/src/cpp/ripple/SHAMap.cpp b/src/cpp/ripple/SHAMap.cpp index 3e323b58a0..77051f17ff 100644 --- a/src/cpp/ripple/SHAMap.cpp +++ b/src/cpp/ripple/SHAMap.cpp @@ -27,7 +27,7 @@ void SHAMapNode::setHash() const mHash = mNodeID.hash_combine(h); #if 0 const unsigned int *ptr = reinterpret_cast(mNodeID.begin()); - for (int i = (mDepth + 3) / 4; i >= 0; --i) + for (int i = (mDepth + 3) / 4; i != 0; --i) boost::hash_combine(h, *ptr++); mHash = h; #endif