From 980db44c9dfc00f5417f099404b4d5a7583236e6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 16 Sep 2024 15:47:35 -0700 Subject: [PATCH] Fixed<1,_>::to_raw --- src/integer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integer.rs b/src/integer.rs index 29f2ee9..192b15b 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -49,7 +49,7 @@ impl Time{ impl From for Time{ #[inline] fn from(value:Planar64)->Self{ - Time((value*Planar64::raw(1_000_000_000)).to_bits().to_bits().digits()[0] as i64) + Time(((value*Planar64::raw(1_000_000_000))>>32).fix_1().to_raw()) } } impl From> for Time @@ -60,7 +60,7 @@ impl From> for Time { #[inline] fn from(value:Ratio)->Self{ - Time((value*Planar64::raw(1_000_000_000)).divide().fix().to_bits().to_bits().digits()[0] as i64) + Time((value*Planar64::raw(1_000_000_000)).divide().fix().to_raw()) } } impl std::fmt::Display for Time{