Skip to content

Commit 5e82a8a

Browse files
Brad Larsenmiss-islington
authored andcommitted
Eliminate duplicated assignment in _randommodule.c (GH-25904)
(cherry picked from commit 23362f8) Co-authored-by: Brad Larsen <[email protected]>
1 parent 7b4725a commit 5e82a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_randommodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ _random_exec(PyObject *module)
597597
}
598598

599599
/* Look up and save int.__abs__, which is needed in random_seed(). */
600-
PyObject *longval = longval = PyLong_FromLong(0);
600+
PyObject *longval = PyLong_FromLong(0);
601601
if (longval == NULL) {
602602
return -1;
603603
}

0 commit comments

Comments
 (0)