Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/bittybuzz/bbzneighbors.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ static void neighbor_map_base(bbzheap_idx_t key,
bbzvm_pop();

// Add a value to return table.
bbzvm_push(nm->t);
bbzheap_idx_t sub_tbl = vm->nil;;
bbztable_get(nm->t, bbzstring_get(INTERNAL_STRID_SUB_TBL), &sub_tbl);
bbzvm_assert_type(sub_tbl, BBZTYPE_TABLE);
bbzvm_push(sub_tbl); // push the subtable
bbzvm_pushi(key);
nm->put_elem(value, ret);

Expand Down