mirror of
https://github.com/google/brotli.git
synced 2024-11-24 20:40:13 +00:00
Update brotlimodule.cc
This commit is contained in:
parent
7cbdb4aa0c
commit
86fdb68373
@ -238,7 +238,7 @@ static PyObject* brotli_decompress(PyObject *self, PyObject *args, PyObject *key
|
||||
if (used_out != 0)
|
||||
output.insert(output.end(), buffer, buffer + used_out);
|
||||
}
|
||||
ok = result == BROTLI_RESULT_SUCCESS;
|
||||
ok = result == BROTLI_DECODER_RESULT_SUCCESS;
|
||||
if (ok) {
|
||||
ret = PyBytes_FromStringAndSize((char*)(output.size() ? &output[0] : NULL), output.size());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user