Commit 4c6ab14
refactor(writer): drop dead ptype arms in readPrimitiveElement
Like primitiveArrayLen, all callers (the global-dict counts/codes loops
and the post-exclusion isDictCandidate check) pass only dict-admitted
ptypes: I32/U32, I64/U64, F64. Collapse the unreachable I8/U8, I16/U16/F16,
F32 arms to default -> throw and add an F64 case to readPrimitiveElementCases.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 94d2fa4 commit 4c6ab14
2 files changed
Lines changed: 7 additions & 4 deletions
File tree
- writer/src
- main/java/io/github/dfa1/vortex/writer
- test/java/io/github/dfa1/vortex/writer
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1335 | 1338 | | |
1336 | 1339 | | |
1337 | | - | |
1338 | | - | |
1339 | 1340 | | |
1340 | 1341 | | |
1341 | | - | |
1342 | 1342 | | |
| 1343 | + | |
1343 | 1344 | | |
1344 | 1345 | | |
1345 | 1346 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
0 commit comments