mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Backout change 28d3bcb1bad6: "Try to fix _PyTime_AsTimevalStruct_impl() on
OpenBSD", I'm not sure that the change was really needed. I read the test result of an old build because the OpenBSD was 100 builds late.
This commit is contained in:
parent
c51d244fc9
commit
c29f399e7e
1 changed files with 2 additions and 3 deletions
|
@ -454,7 +454,7 @@ static int
|
||||||
_PyTime_AsTimevalStruct_impl(_PyTime_t t, struct timeval *tv,
|
_PyTime_AsTimevalStruct_impl(_PyTime_t t, struct timeval *tv,
|
||||||
_PyTime_round_t round, int raise)
|
_PyTime_round_t round, int raise)
|
||||||
{
|
{
|
||||||
_PyTime_t secs, secs2;
|
_PyTime_t secs;
|
||||||
int us;
|
int us;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
@ -467,8 +467,7 @@ _PyTime_AsTimevalStruct_impl(_PyTime_t t, struct timeval *tv,
|
||||||
#endif
|
#endif
|
||||||
tv->tv_usec = us;
|
tv->tv_usec = us;
|
||||||
|
|
||||||
secs2 = (_PyTime_t)tv->tv_sec;
|
if (res < 0 || (_PyTime_t)tv->tv_sec != secs) {
|
||||||
if (res < 0 || secs2 != secs) {
|
|
||||||
if (raise)
|
if (raise)
|
||||||
error_time_t_overflow();
|
error_time_t_overflow();
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue