Commit 52aea72
[lldb][lldb-dap] Fix compilation error on 32 bit platforms
#109485 tried to std::min
between size_t and uint64_t. size_t on 32 bit is 32 bits.
https://lab.llvm.org/buildbot/#/builders/18/builds/4430/steps/4/logs/stdio
Explicitly select the size_t template to fix this.
This will truncate one of the arguments but that's the count_requested.
If you're debugging from a 32 bit host and you asked it to read
> 32 bit range of memory from a 64 bit target, you weren't going
to have any success anyway.
The final result needs to be size_t to resize the vector with.
(cherry picked from commit 26e0b50)1 parent b8d2671 commit 52aea72
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4454 | 4454 | | |
4455 | 4455 | | |
4456 | 4456 | | |
4457 | | - | |
| 4457 | + | |
4458 | 4458 | | |
4459 | 4459 | | |
4460 | 4460 | | |
| |||
0 commit comments