// On recent kernels, we do not need to ptrace the target process.
// On older kernels, it is necessary to ptrace the target process.
size_t count = size;
- off_t off = (off_t)addr;
- char* buf = (char*)valp;
+ auto off = static_cast<off_t>(addr);
+ auto* buf = reinterpret_cast<char*>(valp);
int fd = simgrid::mc::open_vm(pid, O_RDONLY);
if (fd < 0)
return -UNW_EINVAL;