ws-cleanup-types: codecs: type table.create results, string-keyed tables and multi-assigned locals
This commit is contained in:
1 parent
cfe325dcf8
commit
6a8a8abce2
22 files changed
+73
-73
No files matched your search
@@ -267,8 +267,8 @@ function Decode.frame(st: State, buf: buffer, off: number, len: number): (number
|
||||
local x = bitsAt(b, pos, 8)
|
||||
local y = bitsAt(b, pos + 8, 8)
|
||||
pos += 16
|
||||
mode[c], denShift[c] = rshift(x, 4), band(x, 15)
|
||||
pbFactor[c], order[c] = rshift(y, 5), band(y, 31)
|
||||
mode[c], denShift[c] = rshift(x, 4), band(x, 15) :: number
|
||||
pbFactor[c], order[c] = rshift(y, 5), band(y, 31) :: number
|
||||
if pos + order[c] * 16 > limit then
|
||||
return nil, "frame runs past the end"
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user