summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-05 20:19:26 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-05-05 20:19:26 (GMT)
commit8a478ced5585c7819668d028f6969b043a86fc58 (patch)
treebd2536f9e71a8b3b0a675f1f126ef51027520099 /Objects
parentfee3acb0826e1c68bc9c0fa884501cdfcf2c80cc (diff)
downloadcpython-8a478ced5585c7819668d028f6969b043a86fc58.zip
cpython-8a478ced5585c7819668d028f6969b043a86fc58.tar.gz
cpython-8a478ced5585c7819668d028f6969b043a86fc58.tar.bz2
Remove an unneeded assignment.
Found using Clang's static analyzer.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index e4176e2..e347328 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -38,7 +38,7 @@ PyType_ClearCache(void)
{
Py_ssize_t i;
unsigned int cur_version_tag = next_version_tag - 1;
-
+
for (i = 0; i < (1 << MCACHE_SIZE_EXP); i++) {
method_cache[i].version = 0;
Py_CLEAR(method_cache[i].name);
@@ -971,7 +971,7 @@ subtype_dealloc(PyObject *self)
/* Clear slots up to the nearest base with a different tp_dealloc */
base = type;
- while ((basedealloc = base->tp_dealloc) == subtype_dealloc) {
+ while (base->tp_dealloc == subtype_dealloc) {
if (Py_SIZE(base))
clear_slots(base, self);
base = base->tp_base;