diff options
author | bokuweb <bokuweb@users.noreply.github.com> | 2019-01-27 06:10:38 +0900 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-01-26 22:10:38 +0100 |
commit | aaaa35548e146348a7f0c417e7ae64889fe744fb (patch) | |
tree | e2105792dba1b59594b0e5341782f31c93b889de /src/ops.rs | |
parent | 19b2d4a62a7c4a0d323ea9307410e5afe00a4871 (diff) |
timers: use int instead of double for timeout type (#1469)
Diffstat (limited to 'src/ops.rs')
-rw-r--r-- | src/ops.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ops.rs b/src/ops.rs index f3c80e1ac..85a731c6a 100644 --- a/src/ops.rs +++ b/src/ops.rs @@ -338,8 +338,7 @@ fn op_set_timeout( ) -> Box<Op> { assert_eq!(data.len(), 0); let inner = base.inner_as_set_timeout().unwrap(); - // FIXME why is timeout a double if it's cast immediately to i64/u64?? - let val = inner.timeout() as i64; + let val = inner.timeout(); let timeout_due = if val >= 0 { Some(Instant::now() + Duration::from_millis(val as u64)) } else { |