Update brotlimodule.cc

This commit is contained in:
eustas
2016-01-25 12:16:36 +01:00
parent c49918e1ee
commit 1b938dc7a2

View File

@@ -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;
}