Mercurial > hg > Members > tatsuki > bench > jungle-core
diff src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/DeleteChildIndexEditor.java @ 135:6e9a8d26e0cf
refactor
author | one |
---|---|
date | Fri, 24 Oct 2014 18:49:48 +0900 |
parents | f46a6e0e4594 |
children | afbe19c98f53 72f454eb04ec |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/DeleteChildIndexEditor.java Tue Oct 21 19:47:25 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/jungle/store/index/DeleteChildIndexEditor.java Fri Oct 24 18:49:48 2014 +0900 @@ -97,9 +97,9 @@ if (pathInt == -1) continue; if (editNodePathCopy.right().size() > 0) { + editNodePathCopy = editNodePathCopy.right().pop(); - if (loopCount >= editNodePath.size() - && editNodePathCopy.left() < pathInt) { + if (loopCount == editNodePath.size() && editNodePathCopy.left() < pathInt) { newPath = newPath.add(pathInt - 1); continue; }