diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-05-19 11:14:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 11:14:38 (GMT) |
commit | a5119e7d75c9729fc36c059d05f3d7132e7f6bb4 (patch) | |
tree | b9e16c88635e3230a7b5d60b399ea71ff2b38494 /Objects/floatobject.c | |
parent | 1d5bdef550d4395211fbe5f3c1444d7ea5bb54a2 (diff) | |
download | cpython-a5119e7d75c9729fc36c059d05f3d7132e7f6bb4.zip cpython-a5119e7d75c9729fc36c059d05f3d7132e7f6bb4.tar.gz cpython-a5119e7d75c9729fc36c059d05f3d7132e7f6bb4.tar.bz2 |
bpo-36957: Add _PyLong_Rshift() and _PyLong_Lshift(). (GH-13416)
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index adb9b80..4ff43bb 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -463,13 +463,13 @@ float_richcompare(PyObject *v, PyObject *w, int op) */ PyObject *temp; - temp = PyNumber_Lshift(ww, _PyLong_One); + temp = _PyLong_Lshift(ww, 1); if (temp == NULL) goto Error; Py_DECREF(ww); ww = temp; - temp = PyNumber_Lshift(vv, _PyLong_One); + temp = _PyLong_Lshift(vv, 1); if (temp == NULL) goto Error; Py_DECREF(vv); |