Skip to content

Commit 1a9183c

Browse files
committed
Fix typo in fast path upper bound
1 parent bbab367 commit 1a9183c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2610,7 +2610,7 @@ fill_time(PyObject *module, PyObject *v, int s_index, int f_index, int ns_index,
26102610
int res = -1;
26112611
if (ns_index >= 0) {
26122612
/* 1677-09-21 00:12:44 to 2262-04-11 23:47:15 UTC inclusive */
2613-
if ((LLONG_MIN / S_TO_NS) <= sec && sec <= (LONG_MAX / S_TO_NS - 1)) {
2613+
if ((LLONG_MIN / S_TO_NS) <= sec && sec <= (LLONG_MAX / S_TO_NS - 1)) {
26142614
PyObject *ns_total = PyLong_FromLongLong(sec * S_TO_NS + nsec);
26152615
if (!ns_total) {
26162616
return -1;

0 commit comments

Comments
 (0)