Skip to content

Commit a93adbd

Browse files
Replace _PyTime_FromLong with PyLong_AsInt64.
1 parent 6be1856 commit a93adbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pytime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ fromfloat:;
932932
if (nsobj == NULL) {
933933
return -1;
934934
}
935-
int rc = _PyTime_FromLong(tp, nsobj);
935+
int rc = PyLong_AsInt64(nsobj, tp);
936936
Py_DECREF(nsobj);
937937
return rc;
938938
}

0 commit comments

Comments
 (0)