mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Tweak cgozlib to be consistent with cgozstd
This commit is contained in:
1 parent
3adcfc4d99
commit
b4191d48a1
1 file changed
+4
-4
@@ -39,7 +39,7 @@ int cgozlib_inflateSetDictionary(z_stream* z,
|
||||
}
|
||||
|
||||
int cgozlib_inflate(z_stream* z,
|
||||
advances *a,
|
||||
advances* a,
|
||||
Bytef* next_out,
|
||||
uInt avail_out,
|
||||
Bytef* next_in,
|
||||
@@ -134,12 +134,12 @@ func (r *Reader) Reset(reader io.Reader, dictionary []byte) error {
|
||||
if r == nil {
|
||||
return errNilReceiver
|
||||
}
|
||||
if reader == nil {
|
||||
return errNilIOReader
|
||||
}
|
||||
if err := r.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
if reader == nil {
|
||||
return errNilIOReader
|
||||
}
|
||||
|
||||
if e := C.cgozlib_inflateInit(&r.z); e != 0 {
|
||||
return errCode(e)
|
||||
|
||||
Reference in new issue
Block a user