mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
check correct variable for error
This commit is contained in:
parent
d0dba6eee8
commit
35a8f0dee5
1 changed files with 1 additions and 1 deletions
|
@ -3584,7 +3584,7 @@ split_py_long_to_s_and_ns(PyObject *py_long, time_t *s, long *ns)
|
|||
if ((*s == -1) && PyErr_Occurred())
|
||||
goto exit;
|
||||
*ns = PyLong_AsLong(PyTuple_GET_ITEM(divmod, 1));
|
||||
if ((*s == -1) && PyErr_Occurred())
|
||||
if ((*ns == -1) && PyErr_Occurred())
|
||||
goto exit;
|
||||
|
||||
result = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue