summaryrefslogtreecommitdiffstats
path: root/Objects/clinic/floatobject.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-10-27 01:24:34 (GMT)
committerGitHub <noreply@github.com>2020-10-27 01:24:34 (GMT)
commitc9bc290dd6e3994a4ead2a224178bcba86f0c0e4 (patch)
treef3a4e137da850af0438119da460877c3a4fd8532 /Objects/clinic/floatobject.c.h
parent303aac8c56609290e122eecc14c038e9b1e4174a (diff)
downloadcpython-c9bc290dd6e3994a4ead2a224178bcba86f0c0e4.zip
cpython-c9bc290dd6e3994a4ead2a224178bcba86f0c0e4.tar.gz
cpython-c9bc290dd6e3994a4ead2a224178bcba86f0c0e4.tar.bz2
bpo-42161: Use _PyLong_GetZero() and _PyLong_GetOne() (GH-22995)
Use _PyLong_GetZero() and _PyLong_GetOne() in Objects/ and Python/ directories.
Diffstat (limited to 'Objects/clinic/floatobject.c.h')
-rw-r--r--Objects/clinic/floatobject.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/clinic/floatobject.c.h b/Objects/clinic/floatobject.c.h
index b755483..5643f0e 100644
--- a/Objects/clinic/floatobject.c.h
+++ b/Objects/clinic/floatobject.c.h
@@ -206,7 +206,7 @@ static PyObject *
float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- PyObject *x = _PyLong_Zero;
+ PyObject *x = NULL;
if ((type == &PyFloat_Type) &&
!_PyArg_NoKeywords("float", kwargs)) {
@@ -387,4 +387,4 @@ float___format__(PyObject *self, PyObject *arg)
exit:
return return_value;
}
-/*[clinic end generated code: output=25fbbe253f44e2df input=a9049054013a1b77]*/
+/*[clinic end generated code: output=bb079c3e130e4ce6 input=a9049054013a1b77]*/