ws-cleanup-types: archive, audio, data, font, image, layered, music, playlist, subtitle, vector, video: annotations, casts, one value per re-assignment where the solver loses the type

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
4DBugandClaude Opus 5.5 committed 2026-10-31 11:00:25 -05:00
1 parent b0d0a99fec
commit 9af7138b2e
44 files changed
+172 -119

No files matched your search

+6 -2
View File
@@ -384,7 +384,9 @@ function Pixels.convert(P: Params)
r, g, bl = 0, 0, 0
end
elseif photo == 2 then
r, g, bl = norm(0, x, y), norm(1, x, y), norm(2, x, y)
r = norm(0, x, y)
g = norm(1, x, y)
bl = norm(2, x, y)
elseif photo == 5 then
local c, m, ye, k = norm(0, x, y), norm(1, x, y), norm(2, x, y), norm(3, x, y)
r, g, bl = (1 - c) * (1 - k), (1 - m) * (1 - k), (1 - ye) * (1 - k)
@@ -399,7 +401,9 @@ function Pixels.convert(P: Params)
a = norm(alpha, x, y)
if assoc then
if a > 0 then
r, g, bl = math.min(r / a, 1), math.min(g / a, 1), math.min(bl / a, 1)
r = math.min(r / a, 1)
g = math.min(g / a, 1)
bl = math.min(bl / a, 1)
else
r, g, bl = 0, 0, 0
end