summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 6124400..0c409ae 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -616,15 +616,7 @@ static void
fill_time(PyObject *v, int index, time_t sec, unsigned long nsec)
{
PyObject *val;
- if (nsec) {
- val = PyFloat_FromDouble(sec + 1e-9*nsec);
- } else {
-#if SIZEOF_TIME_T > SIZEOF_LONG
- val = PyLong_FromLongLong((LONG_LONG)sec);
-#else
- val = PyInt_FromLong((long)sec);
-#endif
- }
+ val = PyFloat_FromDouble(sec + 1e-9*nsec);
PyStructSequence_SET_ITEM(v, index, val);
}