Skip to content

Commit

Permalink
[lldb] Fix 32 bit compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSpickett committed Sep 4, 2024
1 parent 4f3f09e commit d77ccae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lldb/source/Target/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3377,7 +3377,8 @@ lldb::addr_t Process::FindInMemory(lldb::addr_t low, lldb::addr_t high,
mem.resize_for_overwrite(max_read_size);
Status error;
mem.resize(ReadMemory(cur_addr, mem.data(),
std::min(mem.size(), high - cur_addr), error));
std::min<addr_t>(mem.size(), high - cur_addr),
error));
mem_pos = cur_addr;
if (size > mem.size()) {
// We didn't read enough data. Skip to the next memory region.
Expand Down

1 comment on commit d77ccae

@DavidSpickett
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh, link should have been to #104193.

Please sign in to comment.