diff options
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 7605003..71d13bc 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -292,7 +292,7 @@ com_add(c, list, v) int i; for (i = n; --i >= 0; ) { object *w = getlistitem(list, i); - if (cmpobject(v, w) == 0) + if (v->ob_type == w->ob_type && cmpobject(v, w) == 0) return i; } if (addlistitem(list, v) != 0) |