[Python-checkins] python/dist/src/Modules posixmodule.c,2.257,2.258
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Tue, 10 Sep 2002 08:37:31 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18945/python/Modules
Modified Files:
posixmodule.c
Log Message:
extract_time(): Squash compiler warning about possibly information-
losing implicit double->long cast.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.257
retrieving revision 2.258
diff -C2 -d -r2.257 -r2.258
*** posixmodule.c 10 Sep 2002 15:04:41 -0000 2.257
--- posixmodule.c 10 Sep 2002 15:37:28 -0000 2.258
***************
*** 1413,1417 ****
Py_DECREF(intobj);
*sec = intval;
! *usec = (tval - intval) * 1e6;
if (*usec < 0)
/* If rounding gave us a negative number,
--- 1413,1417 ----
Py_DECREF(intobj);
*sec = intval;
! *usec = (long)((tval - intval) * 1e6); /* can't exceed 1000000 */
if (*usec < 0)
/* If rounding gave us a negative number,