summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-05 04:39:09 (GMT)
committerGitHub <noreply@github.com>2021-05-05 04:39:09 (GMT)
commitb19ec7f9df5897755dae14e6f4c7fef2d3bb0406 (patch)
treeaaefe6e7a0d343a504b7909a0ccf9c9608861873 /Modules
parent7b4725a210bcfe3dc65f37cbada423cbd1e9f063 (diff)
downloadcpython-b19ec7f9df5897755dae14e6f4c7fef2d3bb0406.zip
cpython-b19ec7f9df5897755dae14e6f4c7fef2d3bb0406.tar.gz
cpython-b19ec7f9df5897755dae14e6f4c7fef2d3bb0406.tar.bz2
Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_randommodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index cae49a0..0137e34 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -597,7 +597,7 @@ _random_exec(PyObject *module)
}
/* Look up and save int.__abs__, which is needed in random_seed(). */
- PyObject *longval = longval = PyLong_FromLong(0);
+ PyObject *longval = PyLong_FromLong(0);
if (longval == NULL) {
return -1;
}