From: Mark Wooding Date: Mon, 23 Jul 2007 15:04:37 +0000 (+0100) Subject: sel-timer: Pyrex now wants explicit truncations to integer. X-Git-Tag: 1.0.1~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/commitdiff_plain/c34ff3c579610589a43ea775d0dbf0e15fa6b35f?ds=sidebyside sel-timer: Pyrex now wants explicit truncations to integer. --- diff --git a/sel-timer.pyx b/sel-timer.pyx index 6e00717..6bc4e28 100644 --- a/sel-timer.pyx +++ b/sel-timer.pyx @@ -30,8 +30,8 @@ cdef double _tvtofloat(timeval *tv): cdef void _floattotv(timeval *tv, double t): cdef double s, us us = modf(t, &s) - tv.tv_sec = s - tv.tv_usec = us * 1000000 + tv.tv_sec = s + tv.tv_usec = (us * 1000000) cdef class SelTimer: cdef sel_timer t