refactor: small cleanup in quantity_cast
This commit is contained in:
1 parent
cc68172de7
commit
79b402db41
1 file changed
+1
-1
@@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user