refactor: small cleanup in quantity_cast

This commit is contained in:
Mateusz Pusz
2020-09-14 20:42:19 +02:00
parent cc68172de7
commit 79b402db41

View File

@ -248,7 +248,7 @@ struct quantity_cast_impl<To, CRatio, CRep, true, false, false> {
return To(static_cast<TYPENAME To::rep>(q.count() * (detail::ipow10(CRatio.exp) / CRatio.den)));
}
else {
return To(static_cast<TYPENAME To::rep>(q.count() / ((detail::ipow10(-CRatio.exp) * CRatio.den))));
return To(static_cast<TYPENAME To::rep>(q.count() / (detail::ipow10(-CRatio.exp) * CRatio.den)));
}
}
}