From 131da660c8b905dc3d54191ea210efe35934674d Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 20 Apr 2018 19:30:01 +0200 Subject: [PATCH] Fix bug in _clean. --- m-bptree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-bptree.h b/m-bptree.h index ce727ae7..fdef8588 100644 --- a/m-bptree.h +++ b/m-bptree.h @@ -258,9 +258,9 @@ int num = M_C(name, _get_num)(n); \ M_IF(isMap)(bool is_leaf = M_C(name, _is_leaf)(n);,) \ for(int j = 0; j < num; j++) { \ - M_GET_CLEAR key_oplist(n->key[i]); \ + M_GET_CLEAR key_oplist(n->key[j]); \ M_IF(isMap)(if (is_leaf) { \ - M_GET_CLEAR value_oplist (n->kind.value[i]); \ + M_GET_CLEAR value_oplist (n->kind.value[j]); \ },) \ } \ /* Next node of the same height */ \