[Python-checkins] bpo-9566: Fix a warning in Python/getargs.c (#2890)

Steve Dower webhook-mailer at python.org
Wed Jul 26 11:58:28 EDT 2017


https://github.com/python/cpython/commit/e7bc7aac3d4a7d92aa5913006b0198820882ca59
commit: e7bc7aac3d4a7d92aa5913006b0198820882ca59
branch: master
author: Segev Finer <segev208 at gmail.com>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2017-07-26T08:58:25-07:00
summary:

bpo-9566: Fix a warning in Python/getargs.c (#2890)

files:
M Python/getargs.c

diff --git a/Python/getargs.c b/Python/getargs.c
index c61d9451896..471f72924f6 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2055,7 +2055,7 @@ vgetargskeywordsfast_impl(PyObject **args, Py_ssize_t nargs,
 
     kwtuple = parser->kwtuple;
     pos = parser->pos;
-    len = pos + PyTuple_GET_SIZE(kwtuple);
+    len = pos + (int)PyTuple_GET_SIZE(kwtuple);
 
     if (len > STATIC_FREELIST_ENTRIES) {
         freelist.entries = PyMem_NEW(freelistentry_t, len);



More information about the Python-checkins mailing list