Skip to content

Commit fe4c1fd

Browse files
committed
Docs: mark CEditMap::SaveData and LoadData's truncations replaced
The JSON saves (TheMoonPeople#59) replaced both functions with PORT_OVERRIDE definitions, so their two low-bits casts are replaced rather than open, and Truncations.Check failed on the stale inventory. Regenerated with scripts/port/truncations.py from the Linux CI build.
1 parent 6b56ab2 commit fe4c1fd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎docs/port/truncations.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Origin is where the pointer points, where the expression shows it: **image** (a
3131
| round-trip | 0 | 2 | 2 |
3232
| resolved | 1 | 0 | 1 |
3333
| escapes | 31 | 4 | 35 |
34-
| low-bits | 4 | 6 | 10 |
35-
| **all** | 36 | 12 | 48 |
34+
| low-bits | 6 | 4 | 10 |
35+
| **all** | 38 | 10 | 48 |
3636

3737
Open round trips by unit: ps2/src/movie.cpp 2.
3838

@@ -88,8 +88,8 @@ the same literals in their **masked** column when the masked expression holds a
8888

8989
| line | function | state | class | expression | origin | use | phase |
9090
|---|---|---|---|---|---|---|---|
91-
| 303 | CEditMap::SaveData | open | low-bits | `(uptr)out` | local pointer | test | - |
92-
| 494 | CEditMap::LoadData | open | low-bits | `(uptr)in` | local pointer | test | - |
91+
| 303 | CEditMap::SaveData | replaced | low-bits | `(uptr)out` | local pointer | test | - |
92+
| 494 | CEditMap::LoadData | replaced | low-bits | `(uptr)in` | local pointer | test | - |
9393

9494
## ps2/src/mainloop.cpp (1 rows)
9595

@@ -272,8 +272,8 @@ A pointer cast to a narrow integer, or a `uptr`/`sptr` value that a conversion n
272272

273273
Narrowed expression is an address-alias mask (`& K`, `K` a non-negative 32-bit constant), a residue (`% K`), or a difference of two pointer-wide operands, bare or divided or shifted by a constant. Never fails `--check`.
274274

275-
- `ps2/src/editdata.cpp:303 CEditMap::SaveData other`: benign:low-bits (open)
276-
- `ps2/src/editdata.cpp:494 CEditMap::LoadData other`: benign:low-bits (open)
275+
- `ps2/src/editdata.cpp:303 CEditMap::SaveData other`: benign:low-bits (replaced)
276+
- `ps2/src/editdata.cpp:494 CEditMap::LoadData other`: benign:low-bits (replaced)
277277
- `ps2/src/fishing.cpp:1328 CreateLoadThread local misalignment`: benign:low-bits (open)
278278
- `ps2/src/mainloop.cpp:557 MainLoop local alignment`: benign:residue (replaced)
279279
- `ps2/src/mainloop.cpp:1450 LoadFontTexture local misalign`: benign:low-bits (open)

0 commit comments

Comments
 (0)