From 1b938dc7a2480ef509d45c7a8a87c3d172d2e970 Mon Sep 17 00:00:00 2001 From: eustas Date: Mon, 25 Jan 2016 12:16:36 +0100 Subject: [PATCH] Update brotlimodule.cc --- python/brotlimodule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc index 0f5e27c..51c9022 100644 --- a/python/brotlimodule.cc +++ b/python/brotlimodule.cc @@ -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; }