]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 16 Mar 2019 17:45:00 +0000 (19:45 +0200)
committerGitHub <noreply@github.com>
Sat, 16 Mar 2019 17:45:00 +0000 (19:45 +0200)
Python/getargs.c

index 693a29cced4239a89b4f7b3503f6241555c4aa6c..e50f9b5f5c9dcd78a391bba9f3da66209c6fa574 100644 (file)
@@ -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) {