From 1b0393d5b7842dcd9e933117d2d5404d15e2ad00 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 16 Mar 2019 19:45:00 +0200 Subject: [PATCH] bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353) --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/getargs.c b/Python/getargs.c index 693a29cced..e50f9b5f5c 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) { -- 2.49.0