Skip to content

Commit 313bc79

Browse files
committed
time: fix bad bitflag type size
1 parent 4de6aed commit 313bc79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pulse-binding/src/time/timeval.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl PartialOrd for Timeval {
5555

5656
impl Timeval {
5757
/// Bit to set in `tv_usec` attribute to mark that the `timeval` is in monotonic time.
58-
const RTCLOCK_BIT: i64 = 1 << 30;
58+
const RTCLOCK_BIT: TvUsecs = 1 << 30;
5959

6060
/// Creates a new instance, with values provided.
6161
#[inline]
@@ -97,7 +97,7 @@ impl Timeval {
9797
*self = v.into();
9898

9999
match rtclock {
100-
true => { self.0.tv_usec |= Self::RTCLOCK_BIT as TvUsecs; },
100+
true => { self.0.tv_usec |= Self::RTCLOCK_BIT; },
101101
false => { self.wallclock_from_rtclock(); },
102102
}
103103
self

0 commit comments

Comments
 (0)