summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2012-07-18 16:32:37 -0500
committerMeador Inge <meadori@gmail.com>2012-07-18 16:32:37 -0500
commitb8a569065eb05b14a7aef1d837159e7135defbfb (patch)
tree10f241042d6150db01b215e1f1114c7e11c2f520 /Python/compile.c
parent6642d1f97d7b89509159214253900eb3d970e223 (diff)
downloadcpython-git-b8a569065eb05b14a7aef1d837159e7135defbfb.tar.gz
Issue #15368: fixing variable typo.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index d50344cf61..3cf8c6ef9c 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -379,7 +379,7 @@ dictbytype(PyObject *src, int scope_type, int flag, int offset)
Py_DECREF(sorted_keys);
return NULL;
}
- num_keys = PyList_GET_SIZE(src);
+ num_keys = PyList_GET_SIZE(sorted_keys);
for (key_i = 0; key_i < num_keys; key_i++) {
k = PyList_GET_ITEM(sorted_keys, key_i);