Fixed compilation on Windows for issue #20173.

This commit is contained in:
Serhiy Storchaka 2015-05-12 14:00:22 +03:00
parent bedbf96e84
commit 1aa5e1d63e
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ _codecs_code_page_decode_impl(PyModuleDef *module, int codepage,
/*[clinic end generated code: output=4318e3d9971e31ba input=4f3152a304e21d51]*/
{
Py_ssize_t consumed = data->len;
PyObject *decoded = PyUnicode_DecodeCodePageStateful(code_page,
PyObject *decoded = PyUnicode_DecodeCodePageStateful(codepage,
data->buf, data->len,
errors,
final ? NULL : &consumed);