Skip to content

Commit

Permalink
Convert timeout_us to architecture-dependent type used in readStream/…
Browse files Browse the repository at this point in the history
…writeStream
  • Loading branch information
jboone authored and kevinmehall committed Apr 17, 2021
1 parent aa65323 commit fe1aadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ impl<E: StreamSample> RxStream<E> {
num_samples,
&mut self.flags as *mut _,
&mut self.time_ns as *mut _,
timeout_us
timeout_us as _
))?;

Ok(len as usize)
Expand Down Expand Up @@ -1072,7 +1072,7 @@ impl<E: StreamSample> TxStream<E> {
num_elems,
&mut flags as *mut _,
at_ns.unwrap_or(0),
timeout_us
timeout_us as _
))?;

Ok(len as usize)
Expand Down

0 comments on commit fe1aadc

Please sign in to comment.