[Python-checkins] r80812 - python/trunk/Objects/typeobject.c
brett.cannon
python-checkins at python.org
Wed May 5 22:19:26 CEST 2010
Author: brett.cannon
Date: Wed May 5 22:19:26 2010
New Revision: 80812
Log:
Remove an unneeded assignment.
Found using Clang's static analyzer.
Modified:
python/trunk/Objects/typeobject.c
Modified: python/trunk/Objects/typeobject.c
==============================================================================
--- python/trunk/Objects/typeobject.c (original)
+++ python/trunk/Objects/typeobject.c Wed May 5 22:19:26 2010
@@ -38,7 +38,7 @@
{
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 @@
/* 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;
More information about the Python-checkins
mailing list