Skip to content

Commit

Permalink
add missing qualifications for math ops
Browse files Browse the repository at this point in the history
  • Loading branch information
Wanja Zaeske authored and sevenautumns committed Sep 18, 2024
1 parent 843ea1b commit 14ba2c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ macro_rules! system {
Quantity {
dimension: $crate::lib::marker::PhantomData,
units: $crate::lib::marker::PhantomData,
value: self.value.cbrt(),
value: $crate::num::Float::cbrt(self.value),
}
}

Expand Down Expand Up @@ -907,7 +907,7 @@ macro_rules! system {
Quantity {
dimension: $crate::lib::marker::PhantomData,
units: $crate::lib::marker::PhantomData,
value: self.value.powi(E::to_i32()),
value: $crate::num::Float::powi(self.value, E::to_i32()),
}
}

Expand Down Expand Up @@ -945,7 +945,7 @@ macro_rules! system {
Quantity {
dimension: $crate::lib::marker::PhantomData,
units: $crate::lib::marker::PhantomData,
value: self.value.sqrt(),
value: $crate::num::Float::sqrt(self.value),
}
}}
}
Expand Down

0 comments on commit 14ba2c2

Please sign in to comment.