mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Remove unnecessary for loop initializer in long_lshift1() (GH-93071)
* Remove unnecessary for loop initialization.
This commit is contained in:
parent
32e3b790bc
commit
854db1a606
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue