From 854db1a6061c83d80a3f1e4e87f043b521719920 Mon Sep 17 00:00:00 2001 From: oda-gitso <105083118+oda-gitso@users.noreply.github.com> Date: Thu, 26 May 2022 00:57:33 +0700 Subject: [PATCH] Remove unnecessary for loop initializer in long_lshift1() (GH-93071) * Remove unnecessary for loop initialization. --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 7f60866d2eb..14d5954f848 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;