mirror of
https://github.com/google/brotli.git
synced 2024-12-26 17:51:04 +00:00
[brotlimodule.cc] fix C++11 warning about conversion from string literal to 'char *'
This commit is contained in:
parent
d3dfc68922
commit
08212db733
@ -110,9 +110,10 @@ static PyObject* brotli_compress(PyObject *self, PyObject *args, PyObject *keywd
|
||||
int lgblock = -1;
|
||||
int ok;
|
||||
|
||||
static char *kwlist[] = {"string", "mode", "quality", "lgwin", "lgblock"};
|
||||
static const char *kwlist[] = {"string", "mode", "quality", "lgwin", "lgblock"};
|
||||
|
||||
ok = PyArg_ParseTupleAndKeywords(args, keywds, "s#|O&O&O&O&:compress", kwlist,
|
||||
ok = PyArg_ParseTupleAndKeywords(args, keywds, "s#|O&O&O&O&:compress",
|
||||
const_cast<char **>(kwlist),
|
||||
&input, &length,
|
||||
&mode_convertor, &mode,
|
||||
&quality_convertor, &quality,
|
||||
|
Loading…
Reference in New Issue
Block a user