Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35a8f0d

Browse files
committed
check correct variable for error
1 parent d0dba6e commit 35a8f0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3584,7 +3584,7 @@ split_py_long_to_s_and_ns(PyObject *py_long, time_t *s, long *ns)
35843584
if ((*s == -1) && PyErr_Occurred())
35853585
goto exit;
35863586
*ns = PyLong_AsLong(PyTuple_GET_ITEM(divmod, 1));
3587-
if ((*s == -1) && PyErr_Occurred())
3587+
if ((*ns == -1) && PyErr_Occurred())
35883588
goto exit;
35893589

35903590
result = 1;

0 commit comments

Comments
 (0)