mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-36957: Add _PyLong_Rshift() and _PyLong_Lshift(). (GH-13416)
This commit is contained in:
parent
1d5bdef550
commit
a5119e7d75
4 changed files with 87 additions and 53 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue