Fix bug in assign_slice for negative index; used length of wrong object!

This commit is contained in:
Guido van Rossum 1992-01-10 00:28:07 +00:00
parent 70083dee12
commit 626dae7a42
1 changed files with 1 additions and 1 deletions

View File

@ -1592,7 +1592,7 @@ assign_subscript(w, key, v) /* w[key] = v */
else { else {
int i = getintvalue(key); int i = getintvalue(key);
if (i < 0) if (i < 0)
i += (*sq->sq_length)(v); i += (*sq->sq_length)(w);
return (*func)(w, i, v); return (*func)(w, i, v);
} }
} }