diff options
author | oda-gitso <105083118+oda-gitso@users.noreply.github.com> | 2022-05-25 17:57:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 17:57:33 (GMT) |
commit | 854db1a6061c83d80a3f1e4e87f043b521719920 (patch) | |
tree | 0bffee798dd46ab536d0c624469629db14fff9a8 | |
parent | 32e3b790bc588c9ccbea810a4bea7a20bee43fb2 (diff) | |
download | cpython-854db1a6061c83d80a3f1e4e87f043b521719920.zip cpython-854db1a6061c83d80a3f1e4e87f043b521719920.tar.gz cpython-854db1a6061c83d80a3f1e4e87f043b521719920.tar.bz2 |
Remove unnecessary for loop initializer in long_lshift1() (GH-93071)
* Remove unnecessary for loop initialization.
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 7f60866..14d5954 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -4842,7 +4842,7 @@ long_lshift1(PyLongObject *a, Py_ssize_t wordshift, digit remshift) for (i = 0; i < wordshift; i++) z->ob_digit[i] = 0; accum = 0; - for (i = wordshift, j = 0; j < oldsize; i++, j++) { + for (j = 0; j < oldsize; i++, j++) { accum |= (twodigits)a->ob_digit[j] << remshift; z->ob_digit[i] = (digit)(accum & PyLong_MASK); accum >>= PyLong_SHIFT; |