From: Serhiy Storchaka Date: Sat, 16 Mar 2019 17:45:00 +0000 (+0200) Subject: bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353) X-Git-Tag: v3.8.0a3~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b0393d5b7842dcd9e933117d2d5404d15e2ad00;p=thirdparty%2FPython%2Fcpython.git bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353) --- diff --git a/Python/getargs.c b/Python/getargs.c index 693a29cced42..e50f9b5f5c9d 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -2422,7 +2422,7 @@ _PyArg_UnpackKeywords(PyObject *const *args, Py_ssize_t nargs, } /* copy keyword args using kwtuple to drive process */ - for (i = Py_MAX(nargs, posonly); i < maxargs; i++) { + for (i = Py_MAX((int)nargs, posonly); i < maxargs; i++) { if (nkwargs) { keyword = PyTuple_GET_ITEM(kwtuple, i - posonly); if (kwargs != NULL) {