felipepiovezan wrote:

This seems to fix it:

```
--- a/lldb/source/Host/common/NativeProcessProtocol.cpp
+++ b/lldb/source/Host/common/NativeProcessProtocol.cpp
@@ -676,7 +676,7 @@ Status NativeProcessProtocol::WriteMemory(lldb::addr_t 
addr, const void *buf,
     // If the address is before a breakpoint site, write up to the site, or to
     // the end of the write. Whichever comes first.
     if (addr < sbp_addr) {
-      const size_t to_write = std::min(size, sbp_addr - addr);
+      const size_t to_write = std::min(size, size_t{sbp_addr - addr});
```

Unclear if I am using a bad compiler or if we actually need it

https://github.com/llvm/llvm-project/pull/217348
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to