From 4b71bbec7e29919a17b4f568c2ae9b02177b98ae Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 28 Mar 2021 11:13:55 +0200 Subject: [PATCH] Protect key from being changed while iterating. --- m-bptree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-bptree.h b/m-bptree.h index 853d9d89..795f38df 100644 --- a/m-bptree.h +++ b/m-bptree.h @@ -338,7 +338,7 @@ separated in their own array in the node, it is pointers to \ the objects, not a global pointer to both objects. */ \ typedef struct M_C(name, _pair_s) { \ - key_t *key_ptr; \ + key_t const *key_ptr; \ value_t *value_ptr; \ } subtype_t; \ , \