Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HaniAmmar committed Dec 5, 2024
1 parent d3f05ce commit e2c9dac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Include/Digit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,12 @@ struct Digit {
}

if (fraction_only) {
if (((index - started_at) < number_length) || power_increased) {
const SizeT zeroed_index = (index - started_at);

if ((zeroed_index < number_length) || power_increased) {
if (diff != 0U) {
if (power_increased) {
index = index - SizeT((index - started_at) == number_length);
index = (index - SizeT(zeroed_index == number_length));
storage[index] = DigitUtils::DigitChar::One;
}

Expand Down

0 comments on commit e2c9dac

Please sign in to comment.