mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Type check built-in functions more thoroughly
This commit is contained in:
1 parent
4877279ee7
commit
d14b56ea39
15 files changed
+291
-163
No files matched your search
@@ -92,7 +92,7 @@ pri func decoder.decode_huffman_fast?(dst writer1, src reader1)() {
|
||||
|
||||
if (table_entry >> 31) != 0 {
|
||||
// Literal.
|
||||
in.dst.write_u8?(x:(table_entry >> 8) & 0xFF)
|
||||
in.dst.write_u8?(x:((table_entry >> 8) & 0xFF) as u8)
|
||||
continue:loop
|
||||
} else if (table_entry >> 30) != 0 {
|
||||
// No-op; code continues past the if-else chain.
|
||||
@@ -131,7 +131,7 @@ pri func decoder.decode_huffman_fast?(dst writer1, src reader1)() {
|
||||
|
||||
if (table_entry >> 31) != 0 {
|
||||
// Literal.
|
||||
in.dst.write_u8?(x:(table_entry >> 8) & 0xFF)
|
||||
in.dst.write_u8?(x:((table_entry >> 8) & 0xFF) as u8)
|
||||
continue:loop
|
||||
} else if (table_entry >> 30) != 0 {
|
||||
// No-op; code continues past the if-else chain.
|
||||
|
||||
@@ -47,7 +47,7 @@ pri func decoder.decode_huffman_slow?(dst writer1, src reader1)() {
|
||||
|
||||
if (table_entry >> 31) != 0 {
|
||||
// Literal.
|
||||
in.dst.write_u8?(x:(table_entry >> 8) & 0xFF)
|
||||
in.dst.write_u8?(x:((table_entry >> 8) & 0xFF) as u8)
|
||||
continue:loop
|
||||
} else if (table_entry >> 30) != 0 {
|
||||
// No-op; code continues past the if-else chain.
|
||||
@@ -77,7 +77,7 @@ pri func decoder.decode_huffman_slow?(dst writer1, src reader1)() {
|
||||
|
||||
if (table_entry >> 31) != 0 {
|
||||
// Literal.
|
||||
in.dst.write_u8?(x:(table_entry >> 8) & 0xFF)
|
||||
in.dst.write_u8?(x:((table_entry >> 8) & 0xFF) as u8)
|
||||
continue:loop
|
||||
} else if (table_entry >> 30) != 0 {
|
||||
// No-op; code continues past the if-else chain.
|
||||
|
||||
Reference in new issue
Block a user