Skip to content

Commit d77ccae

Browse files
committed
1 parent 4f3f09e commit d77ccae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Target/Process.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3377,7 +3377,8 @@ lldb::addr_t Process::FindInMemory(lldb::addr_t low, lldb::addr_t high,
33773377
mem.resize_for_overwrite(max_read_size);
33783378
Status error;
33793379
mem.resize(ReadMemory(cur_addr, mem.data(),
3380-
std::min(mem.size(), high - cur_addr), error));
3380+
std::min<addr_t>(mem.size(), high - cur_addr),
3381+
error));
33813382
mem_pos = cur_addr;
33823383
if (size > mem.size()) {
33833384
// We didn't read enough data. Skip to the next memory region.

0 commit comments

Comments
 (0)