Skip to content

Commit

Permalink
Maintain kind when multplying a number by a quantity.
Browse files Browse the repository at this point in the history
`1.0 * Q` and `1.0 / Q` now both maintain Q's kind in the result. `Q *
1.0` and `Q / 1.0` already maintain the kind. Resolves #138.
  • Loading branch information
iliekturtles committed May 13, 2019
1 parent def7d69 commit bc1e094
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ macro_rules! system {
$quantities<
$($crate::typenum::$AddSubAlias<
$crate::typenum::Z0,
D::$symbol>,)+>,
D::$symbol>,)+
D::Kind>,
U, V>;

#[inline(always)]
Expand Down

0 comments on commit bc1e094

Please sign in to comment.