Skip to content

Commit 100ac7d

Browse files
committed
Fix lambda captures
1 parent b91c5f1 commit 100ac7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/os/mac/Process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ namespace hat::process {
152152
}
153153

154154
void module::for_each_segment(const std::function<bool(std::span<std::byte>, hat::protection)>& callback) const {
155-
for_each_segment_impl(this->address(), [](uintptr_t slide, const segment_command_t* seg) {
155+
for_each_segment_impl(this->address(), [&](uintptr_t slide, const segment_command_t* seg) {
156156
const std::span data{
157157
reinterpret_cast<std::byte*>(seg->vmaddr + slide),
158158
seg->vmsize

0 commit comments

Comments
 (0)