Update brotlimodule.cc

This commit is contained in:
eustas 2016-01-25 12:33:38 +01:00
parent 1b938dc7a2
commit 8e8b8de0e6

View File

@ -34,7 +34,7 @@ static int mode_convertor(PyObject *o, BrotliParams::Mode *mode) {
PyErr_SetString(BrotliError, "Invalid mode");
return 0;
}
*mode = (BrotliParams) mode_value;
*mode = (BrotliParams::Mode) mode_value;
if (*mode != BrotliParams::MODE_GENERIC &&
*mode != BrotliParams::MODE_TEXT &&
*mode != BrotliParams::MODE_FONT) {