Skip to content

Commit 23362f8

Browse files
author
Brad Larsen
authored
Eliminate duplicated assignment in _randommodule.c (GH-25904)
1 parent 6fdc4d3 commit 23362f8

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)