summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-09-09 16:17:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-09-09 16:17:47 (GMT)
commita32c99412914058f47bc50336c7c83d38331e880 (patch)
tree26c6f7940b5b851ec50b75599e79d8890332bfe1 /Modules/posixmodule.c
parent94717ed1d4e8c361656cfdfa16ccc3364073cde8 (diff)
downloadcpython-a32c99412914058f47bc50336c7c83d38331e880.zip
cpython-a32c99412914058f47bc50336c7c83d38331e880.tar.gz
cpython-a32c99412914058f47bc50336c7c83d38331e880.tar.bz2
Always generate floats for stat_result; fix configure test.
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);
}