Skip to content

Commit 854db1a

Browse files
author
oda-gitso
authored
Remove unnecessary for loop initializer in long_lshift1() (GH-93071)
* Remove unnecessary for loop initialization.
1 parent 32e3b79 commit 854db1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4842,7 +4842,7 @@ long_lshift1(PyLongObject *a, Py_ssize_t wordshift, digit remshift)
48424842
for (i = 0; i < wordshift; i++)
48434843
z->ob_digit[i] = 0;
48444844
accum = 0;
4845-
for (i = wordshift, j = 0; j < oldsize; i++, j++) {
4845+
for (j = 0; j < oldsize; i++, j++) {
48464846
accum |= (twodigits)a->ob_digit[j] << remshift;
48474847
z->ob_digit[i] = (digit)(accum & PyLong_MASK);
48484848
accum >>= PyLong_SHIFT;

0 commit comments

Comments
 (0)