Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579b2f8 commit 30ab627Copy full SHA for 30ab627
1 file changed
Modules/posixmodule.c
@@ -2634,11 +2634,14 @@ _posix_free(void *module)
2634
static PyObject *
2635
stat_nanosecond_timestamp(_posixstate *state, time_t sec, unsigned long nsec)
2636
{
2637
+#if SIZEOF_LONG >= 8
2638
/* 1677-09-21 00:12:44 to 2262-04-11 23:47:15 UTC inclusive */
2639
if ((LLONG_MIN/SEC_TO_NS) <= sec && sec <= (LLONG_MAX/SEC_TO_NS - 1)) {
2640
return PyLong_FromLongLong(sec * SEC_TO_NS + nsec);
2641
}
- else {
2642
+ else
2643
+#endif
2644
+ {
2645
PyObject *ns_total = NULL;
2646
PyObject *s_in_ns = NULL;
2647
PyObject *s = _PyLong_FromTime_t(sec);
0 commit comments