Skip to content

Commit 1aeb27e

Browse files
committed
update datatype for windows
1 parent 28b661c commit 1aeb27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3358,7 +3358,7 @@ delta_total_seconds(PyObject *op, PyObject *Py_UNUSED(dummy))
33583358
+ (double)microseconds * 1e-6
33593359
+ (double)nanoseconds * 1e-9;
33603360
// check for decimal parts
3361-
if ((long)total != total){
3361+
if ((long long)total != total){
33623362
// round to 9 decimal places
33633363
total = roundl(total * 1e9) / 1e9;
33643364
}

0 commit comments

Comments
 (0)