summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2012-07-18 16:41:03 -0500
committerMeador Inge <meadori@gmail.com>2012-07-18 16:41:03 -0500
commitc14cb20ef4485a2a14ce2c8b2d1ae4e5a2448904 (patch)
tree888570f39a335ff40e403b099d31feda4f5e50f4 /Python/compile.c
parent18abf633bf4ed5f7a214a8d9d5981b81f60c32c8 (diff)
downloadcpython-c14cb20ef4485a2a14ce2c8b2d1ae4e5a2448904.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 8268b1c1e0..a1da016c21 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -387,7 +387,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++) {
/* XXX this should probably be a macro in symtable.h */