]> granicus.if.org Git - python/commitdiff
Issue 3230: Do not the set specific size macro.
authorRaymond Hettinger <python@rcn.com>
Sat, 28 Jun 2008 22:16:53 +0000 (22:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 28 Jun 2008 22:16:53 +0000 (22:16 +0000)
Objects/dictobject.c

index 08a3a1ed7d247383cea9032f19154309ddfc4c66..57911654f553f6289f257fbf63ccdf4bc487a326 100644 (file)
@@ -1253,7 +1253,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
                PyObject *key;
                long hash;
 
-               if (dictresize(mp, PySet_GET_SIZE(seq)))
+               if (dictresize(mp, Py_SIZE(seq)))
                        return NULL;
 
                while (_PyDict_Next(seq, &pos, &key, &oldvalue, &hash)) {