ws-cleanup-types: TrueType names, mp3 index, aac options, imageops test: annotations

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
4DBugandClaude Opus 5.5 committed 2026-10-31 10:54:51 -05:00
1 parent c436f4d265
commit d8c0394fbf
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -452,7 +452,7 @@ local function macRoman(b: buffer, o: number, n: number): string
return table.concat(out)
end
local NAME_IDS = {
local NAME_IDS: { [number]: string } = {
[0] = "copyright",
[1] = "family",
[2] = "style",
@@ -486,7 +486,7 @@ function Tables.names(b: buffer, o: number, n: number): { [string]: string }
local len, off = u16(b, r + 8), u16(b, r + 10)
local key = NAME_IDS[nid]
if key and strings + off + len <= o + n then
local rk, s = 0, nil
local rk: number, s: string? = 0, nil
if pid == 3 and (eid == 1 or eid == 10 or eid == 0) then
rk = if lang == 0x409 then 4 else 2
s = utf16be(b, strings + off, len)