From 96940cf30dcaac664e3af1dca79b502c78a41248 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 10 Sep 2002 15:37:28 +0000 Subject: [PATCH] extract_time(): Squash compiler warning about possibly information- losing implicit double->long cast. --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 465cb5181d9..90c0aaca49b 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1412,7 +1412,7 @@ extract_time(PyObject *t, long* sec, long* usec) intval = PyInt_AsLong(intobj); Py_DECREF(intobj); *sec = intval; - *usec = (tval - intval) * 1e6; + *usec = (long)((tval - intval) * 1e6); /* can't exceed 1000000 */ if (*usec < 0) /* If rounding gave us a negative number, truncate. */