Skip to content

Commit

Permalink
makeDetailsMask() maxBlanks uint8_t (p8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 12, 2024
1 parent d2e06b7 commit 85556e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
assert(rem < 1.0);

double numDots = ceil(rem * 8.0);
uint8_t maxBlanks = (uint8_t)(8 - (uint8_t)numDots) % 8;
uint8_t maxBlanks = (uint8_t)(8 - (int)numDots) % 8;

uint8_t blanksAtEnd;
bool roundsUpInAscii = false;
Expand Down

0 comments on commit 85556e7

Please sign in to comment.