@@ -137,7 +137,7 @@ impl rtio::RtioTimer for Timer {
137137
138138 // there are 10^6 nanoseconds in a millisecond, and the parameter is in
139139 // 100ns intervals, so we multiply by 10^4.
140- let due = -( msecs * 10000 ) as libc:: LARGE_INTEGER ;
140+ let due = -( msecs as i64 * 10000 ) as libc:: LARGE_INTEGER ;
141141 assert_eq ! ( unsafe {
142142 imp:: SetWaitableTimer ( self . obj, & due, 0 , ptr:: null( ) ,
143143 ptr:: mut_null( ) , 0 )
@@ -151,7 +151,7 @@ impl rtio::RtioTimer for Timer {
151151 let ( tx, rx) = channel ( ) ;
152152
153153 // see above for the calculation
154- let due = -( msecs * 10000 ) as libc:: LARGE_INTEGER ;
154+ let due = -( msecs as i64 * 10000 ) as libc:: LARGE_INTEGER ;
155155 assert_eq ! ( unsafe {
156156 imp:: SetWaitableTimer ( self . obj, & due, 0 , ptr:: null( ) ,
157157 ptr:: mut_null( ) , 0 )
@@ -167,7 +167,7 @@ impl rtio::RtioTimer for Timer {
167167 let ( tx, rx) = channel ( ) ;
168168
169169 // see above for the calculation
170- let due = -( msecs * 10000 ) as libc:: LARGE_INTEGER ;
170+ let due = -( msecs as i64 * 10000 ) as libc:: LARGE_INTEGER ;
171171 assert_eq ! ( unsafe {
172172 imp:: SetWaitableTimer ( self . obj, & due, msecs as libc:: LONG ,
173173 ptr:: null( ) , ptr:: mut_null( ) , 0 )
0 commit comments