summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-03-16 17:45:00 (GMT)
committerGitHub <noreply@github.com>2019-03-16 17:45:00 (GMT)
commit1b0393d5b7842dcd9e933117d2d5404d15e2ad00 (patch)
treea83ee857275f30fb6d4ff79d6ea5d51a50f5984b /Python/getargs.c
parentf40b4a0b6277b2779b9ded3736325489f2af93e4 (diff)
downloadcpython-1b0393d5b7842dcd9e933117d2d5404d15e2ad00.zip
cpython-1b0393d5b7842dcd9e933117d2d5404d15e2ad00.tar.gz
cpython-1b0393d5b7842dcd9e933117d2d5404d15e2ad00.tar.bz2
bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353)
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 693a29c..e50f9b5 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) {