From 133508cbaa44408f31f8915fc442b8b5ef577764 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 17 Jul 2013 14:14:53 -0700 Subject: [PATCH] Fix check against findResult.compare --- modules/ripple_app/node/ripple_KeyvaDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ripple_app/node/ripple_KeyvaDB.cpp b/modules/ripple_app/node/ripple_KeyvaDB.cpp index 75186920f..864b64964 100644 --- a/modules/ripple_app/node/ripple_KeyvaDB.cpp +++ b/modules/ripple_app/node/ripple_KeyvaDB.cpp @@ -398,7 +398,7 @@ public: // Binary tree insertion. // Link the last key record to the new key { - if (findResult.compare == -1) + if (findResult.compare < 0) { findResult.keyRecord.leftIndex = state->newKeyIndex; }