mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Get rid of remnants of integer division
This commit is contained in:
parent
ed483ba63b
commit
bcc0db82dc
28 changed files with 47 additions and 212 deletions
|
@ -266,7 +266,7 @@ math_log(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
ans = PyNumber_Divide(num, den);
|
||||
ans = PyNumber_TrueDivide(num, den);
|
||||
Py_DECREF(num);
|
||||
Py_DECREF(den);
|
||||
return ans;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue