diff --git a/src/integer.rs b/src/integer.rs index 8bdc9de..ed7acf4 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -42,7 +42,7 @@ impl Time{ impl From for Time{ #[inline] fn from(value:Planar64)->Self{ - Time((((value.0 as i128)*1_000_000_000)>>32) as i64) + Time(value.wide_mul(Planar64::raw(1_000_000_000)) as i64) } } impl std::fmt::Display for Time{