summaryrefslogtreecommitdiff
path: root/examples/natmod/btree/btree_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/natmod/btree/btree_c.c')
-rw-r--r--examples/natmod/btree/btree_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/natmod/btree/btree_c.c b/examples/natmod/btree/btree_c.c
index f3e4790ed..5e8a34ac4 100644
--- a/examples/natmod/btree/btree_c.c
+++ b/examples/natmod/btree/btree_c.c
@@ -115,7 +115,7 @@ STATIC mp_obj_t btree_open(size_t n_args, const mp_obj_t *args) {
mp_raise_OSError(native_errno);
}
- return MP_OBJ_FROM_PTR(btree_new(db));
+ return MP_OBJ_FROM_PTR(btree_new(db, args[0]));
}
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(btree_open_obj, 5, 5, btree_open);