Tweak cgozlib to be consistent with cgozstd

This commit is contained in:
Nigel Tao committed 2019-09-14 11:41:36 +10:00
1 parent 3adcfc4d99
commit b4191d48a1
1 file changed
+4 -4
+4 -4
View File
@@ -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)