From 74afcf457d7b4c0419613a96c5900e6b88d79764 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 30 Aug 2024 22:11:42 -0700 Subject: [PATCH] built in calculation --- src/integer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{