mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Type check used-package structs and funcs
This commit is contained in:
1 parent
6b640bea86
commit
8dbfad9509
3 files changed
+96
-99
No files matched your search
+5
-3
@@ -1910,10 +1910,12 @@ void wuffs_lzw__decoder__set_literal_width(wuffs_lzw__decoder* self,
|
||||
if (self->private_impl.status < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (a_lw <= 8) {
|
||||
self->private_impl.f_literal_width = a_lw;
|
||||
if (a_lw < 2 || a_lw > 8) {
|
||||
self->private_impl.status = WUFFS_LZW__ERROR_BAD_ARGUMENT;
|
||||
return;
|
||||
}
|
||||
|
||||
self->private_impl.f_literal_width = a_lw;
|
||||
}
|
||||
|
||||
// -------- func decoder.decode
|
||||
|
||||
Reference in new issue
Block a user