mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
This commit is contained in:
parent
b821173b54
commit
998c54948a
1 changed files with 0 additions and 1 deletions
|
@ -2489,7 +2489,6 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
||||||
int x_is_odd;
|
int x_is_odd;
|
||||||
PyObject *temp;
|
PyObject *temp;
|
||||||
|
|
||||||
whole_us = round(leftover_us);
|
|
||||||
if (fabs(whole_us - leftover_us) == 0.5) {
|
if (fabs(whole_us - leftover_us) == 0.5) {
|
||||||
/* We're exactly halfway between two integers. In order
|
/* We're exactly halfway between two integers. In order
|
||||||
* to do round-half-to-even, we must determine whether x
|
* to do round-half-to-even, we must determine whether x
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue