aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/bc.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/bc.c')
-rw-r--r--toys/pending/bc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/bc.c b/toys/pending/bc.c
index 37131404..1288fabb 100644
--- a/toys/pending/bc.c
+++ b/toys/pending/bc.c
@@ -5370,7 +5370,7 @@ size_t bc_program_insertFunc(BcProgram *p, char *name) {
id.len = p->fns.len;
new = bc_map_insert(&p->fn_map, &id, &idx);
- idx = ((struct ptr_len *)bc_vec_item(&p->fn_map, idx))->len;
+ idx = ((struct BcVec *)bc_vec_item(&p->fn_map, idx))->len;
if (!new) {
BcFunc *func = bc_vec_item(&p->fns, idx);