diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h
index df2b5507..c9013bd1 100644
--- a/src/core/include/units/magnitude.h
+++ b/src/core/include/units/magnitude.h
@@ -306,12 +306,14 @@ constexpr auto operator*(magnitude
, magnitude) {
return magnitude{} * partial_product;
}
}
+
// Case for when H1 has the smaller base.
- else if constexpr(H1.get_base() < H2.get_base()){
+ if constexpr(H1.get_base() < H2.get_base()){
return magnitude{} * (magnitude{} * magnitude{});
}
+
// Case for when H2 has the smaller base.
- else {
+ if constexpr(H1.get_base() > H2.get_base()){
return magnitude{} * (magnitude{} * magnitude{});
}
}