mirror of
https://github.com/google/brotli.git
synced 2024-11-25 21:10:05 +00:00
[brotlimodule.cc] remove C++11 vector::data() call
This commit is contained in:
parent
8a1fa6631f
commit
3e67d48702
@ -191,7 +191,7 @@ static PyObject* brotli_decompress(PyObject *self, PyObject *args) {
|
||||
|
||||
ok = BrotliDecompress(in, out);
|
||||
if (ok) {
|
||||
ret = PyBytes_FromStringAndSize((char*)output.data(), output.size());
|
||||
ret = PyBytes_FromStringAndSize((char*)(output.size() ? &output[0] : NULL), output.size());
|
||||
} else {
|
||||
PyErr_SetString(BrotliError, "BrotliDecompress failed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user