]> granicus.if.org Git - python/commitdiff
Issue #15368: fixing variable typo.
authorMeador Inge <meadori@gmail.com>
Wed, 18 Jul 2012 21:41:03 +0000 (16:41 -0500)
committerMeador Inge <meadori@gmail.com>
Wed, 18 Jul 2012 21:41:03 +0000 (16:41 -0500)
Python/compile.c

index 8268b1c1e0ef26d1c92d9236576e028195c2c9fc..a1da016c2153bc4615f7e8084e3052c7f73b096e 100644 (file)
@@ -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 */