mirror of
https://github.com/google/brotli.git
synced 2026-09-24 15:46:13 +00:00
Update brotlimodule.cc
This commit is contained in:
@@ -30,7 +30,7 @@ static int mode_convertor(PyObject *o, BrotliParams::Mode *mode) {
|
||||
}
|
||||
|
||||
int mode_value = -1;
|
||||
if (!as_uint8(o, mode_value)) {
|
||||
if (!as_uint8(o, &mode_value)) {
|
||||
PyErr_SetString(BrotliError, "Invalid mode");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user