mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +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,
|
int cgozlib_inflate(z_stream* z,
|
||||||
advances *a,
|
advances* a,
|
||||||
Bytef* next_out,
|
Bytef* next_out,
|
||||||
uInt avail_out,
|
uInt avail_out,
|
||||||
Bytef* next_in,
|
Bytef* next_in,
|
||||||
@@ -134,12 +134,12 @@ func (r *Reader) Reset(reader io.Reader, dictionary []byte) error {
|
|||||||
if r == nil {
|
if r == nil {
|
||||||
return errNilReceiver
|
return errNilReceiver
|
||||||
}
|
}
|
||||||
if reader == nil {
|
|
||||||
return errNilIOReader
|
|
||||||
}
|
|
||||||
if err := r.Close(); err != nil {
|
if err := r.Close(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if reader == nil {
|
||||||
|
return errNilIOReader
|
||||||
|
}
|
||||||
|
|
||||||
if e := C.cgozlib_inflateInit(&r.z); e != 0 {
|
if e := C.cgozlib_inflateInit(&r.z); e != 0 {
|
||||||
return errCode(e)
|
return errCode(e)
|
||||||
|
|||||||
Reference in new issue
Block a user