Skip to content

Commit

Permalink
Vereinfachung der Einhwitenumwandung
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfehrs committed Jan 23, 2024
1 parent 4b7fd8c commit 4315799
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/zollstock/scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,9 @@ namespace zollstock
return std::pow(get<pos>(this_unit.factors), this_exponent) /
std::pow(get<pos>(that_unit.factors), that_exponent);
}
else if constexpr(get<pos>(this_unit.exponents) != 0)
{
return get<pos>(this_unit.factors);
}
else
{
return 1.0;
return 1.0L;
}
}

Expand Down

0 comments on commit 4315799

Please sign in to comment.