summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-10 00:28:07 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-10 00:28:07 (GMT)
commit626dae7a4269a9d2f3708e57080995cbf60289eb (patch)
tree56edd1695a42396f62d1a609f59bdbceecf3e24a
parent70083dee1203992fff93c0d659df51c6286c3e19 (diff)
downloadcpython-626dae7a4269a9d2f3708e57080995cbf60289eb.zip
cpython-626dae7a4269a9d2f3708e57080995cbf60289eb.tar.gz
cpython-626dae7a4269a9d2f3708e57080995cbf60289eb.tar.bz2
Fix bug in assign_slice for negative index; used length of wrong object!
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index ec24110..1d0cdb4 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1592,7 +1592,7 @@ assign_subscript(w, key, v) /* w[key] = v */
else {
int i = getintvalue(key);
if (i < 0)
- i += (*sq->sq_length)(v);
+ i += (*sq->sq_length)(w);
return (*func)(w, i, v);
}
}