From 94e23b7f0f1198456f5ec69d0b3aa052e48e6fd0 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Sep 2024 18:08:20 -0700 Subject: [PATCH] idk what I'm doing --- fixed_wide/src/fixed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixed_wide/src/fixed.rs b/fixed_wide/src/fixed.rs index a8bf944..14c8245 100644 --- a/fixed_wide/src/fixed.rs +++ b/fixed_wide/src/fixed.rs @@ -525,9 +525,9 @@ macro_rules! impl_wide_same_size_not_const_generic{ if self.is_negative()==rhs.is_negative(){ Fixed::from_bits(out) }else{ - // Wrapping is the cheapest negation operation + // Normal neg is the cheapest negation operation // And the inputs cannot reach the point where it matters - Fixed::from_bits(out.wrapping_neg()) + Fixed::from_bits(out.neg()) } } /// This operation cannot represent the fraction exactly,