Skip to content

Commit

Permalink
pass 'buff' to visit_seqable lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
bpiel committed Feb 20, 2025
1 parent 8bdbf05 commit b41650f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compiler+runtime/src/cpp/jank/runtime/core/seq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ namespace jank::runtime
runtime::to_string(o, buff);
}
return visit_seqable(
[&](auto const typed_args) -> native_persistent_string {
[](auto const typed_args, auto &buff) -> native_persistent_string {
for(auto it(typed_args->fresh_seq()); it != nullptr; it = it->next_in_place())
{
auto const fst(it->first());
Expand All @@ -949,7 +949,8 @@ namespace jank::runtime
}
return buff.release();
},
args);
args,
buff);
}

obj::persistent_list_ptr list(object_ptr const s)
Expand Down

0 comments on commit b41650f

Please sign in to comment.