From 86fdb6837341e67e9545032dfd310b51b83529ea Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Wed, 21 Sep 2016 16:02:32 +0200 Subject: Update brotlimodule.cc --- python/brotlimodule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc index e7b8b77..1d3b208 100644 --- a/python/brotlimodule.cc +++ b/python/brotlimodule.cc @@ -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 { -- cgit v1.1