@@ -137,7 +137,7 @@ impl rtio::RtioTimer for Timer {
137
137
138
138
// there are 10^6 nanoseconds in a millisecond, and the parameter is in
139
139
// 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 ;
141
141
assert_eq ! ( unsafe {
142
142
imp:: SetWaitableTimer ( self . obj, & due, 0 , ptr:: null( ) ,
143
143
ptr:: mut_null( ) , 0 )
@@ -151,7 +151,7 @@ impl rtio::RtioTimer for Timer {
151
151
let ( tx, rx) = channel ( ) ;
152
152
153
153
// 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 ;
155
155
assert_eq ! ( unsafe {
156
156
imp:: SetWaitableTimer ( self . obj, & due, 0 , ptr:: null( ) ,
157
157
ptr:: mut_null( ) , 0 )
@@ -167,7 +167,7 @@ impl rtio::RtioTimer for Timer {
167
167
let ( tx, rx) = channel ( ) ;
168
168
169
169
// 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 ;
171
171
assert_eq ! ( unsafe {
172
172
imp:: SetWaitableTimer ( self . obj, & due, msecs as libc:: LONG ,
173
173
ptr:: null( ) , ptr:: mut_null( ) , 0 )
0 commit comments