Skip to content

Commit

Permalink
makeDetailsMask() blanksAtEnd (q21j)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 17, 2024
1 parent 9d1cb5b commit 4efb1b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre

distance = ceil(distance);
unsigned int maxBlanks2 = 8 - (unsigned int)(int)numDots / 2;
int temp1 = MINIMUM((int)maxBlanks2, (int)distance);
blanksAtEnd = (uint8_t)(maxBlanks2 - (unsigned int)temp1);
int temp1 = MAXIMUM((int)maxBlanks2, (int)distance);
blanksAtEnd = (uint8_t)((unsigned int)temp1 - (unsigned int)(int)distance);
}
assert(blanksAtEnd < 8);

Expand Down

0 comments on commit 4efb1b5

Please sign in to comment.