From c1f8bed3b80fac693ba56751161e91adb3bfa815 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 3 Mar 2013 05:59:47 -0800 Subject: [PATCH] Fix a possible bug in commented out code. --- src/cpp/ripple/SHAMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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