ZJIT: Avoid double negative in Mem debug

Prior to this commit the debug output for negative offsets would look
like:

```
Mem64[Reg(3) - -8
```

That makes it look like we're adding instead of subtracting. After this
commit we'll print:

```
Mem64[Reg(3) - 8
```
This commit is contained in:
Daniel Colson 2025-07-05 20:01:47 -04:00 committed by Alan Wu
parent d0fdbef4ea
commit 002d746418

View File

@ -45,7 +45,7 @@ impl fmt::Debug for Mem {
write!(fmt, "Mem{}[{:?}", self.num_bits, self.base)?;
if self.disp != 0 {
let sign = if self.disp > 0 { '+' } else { '-' };
write!(fmt, " {sign} {}", self.disp)?;
write!(fmt, " {sign} {}", self.disp.abs())?;
}
write!(fmt, "]")