summaryrefslogtreecommitdiff
path: root/heap/hp_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'heap/hp_delete.c')
-rw-r--r--heap/hp_delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_delete.c b/heap/hp_delete.c
index 5287533ae0a..2d94418a1bf 100644
--- a/heap/hp_delete.c
+++ b/heap/hp_delete.c
@@ -80,7 +80,7 @@ int hp_rb_delete_key(HP_INFO *info, register HP_KEYDEF *keyinfo,
custom_arg.search_flag= SEARCH_SAME;
old_allocated= keyinfo->rb_tree.allocated;
res= tree_delete(&keyinfo->rb_tree, info->recbuf, &custom_arg);
- info->s->index_length+= (keyinfo->rb_tree.allocated-old_allocated);
+ info->s->index_length-= (old_allocated - keyinfo->rb_tree.allocated);
return res;
}