aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegev Finer <segev208@gmail.com>2017-07-26 18:58:25 +0300
committerSteve Dower <steve.dower@microsoft.com>2017-07-26 08:58:25 -0700
commite7bc7aac3d4a7d92aa5913006b0198820882ca59 (patch)
treea41d22c4911c482896d80784c46dbe07b40e2416 /Python/getargs.c
parentbpo-30188: fix TypeError in test_nntplib (GH-2892) (diff)
downloadcpython-e7bc7aac3d4a7d92aa5913006b0198820882ca59.tar.gz
cpython-e7bc7aac3d4a7d92aa5913006b0198820882ca59.tar.bz2
cpython-e7bc7aac3d4a7d92aa5913006b0198820882ca59.zip
bpo-9566: Fix a warning in Python/getargs.c (#2890)
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 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);