Skip to content

Commit

Permalink
makeDetailsMask() blanksAtEnd (q21g)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 16, 2024
1 parent b08386d commit 9d1cb5b
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;
double temp1 = MINIMUM((double)(int)maxBlanks2, distance);
blanksAtEnd = (uint8_t)(maxBlanks2 - (unsigned int)(int)temp1);
int temp1 = MINIMUM((int)maxBlanks2, (int)distance);
blanksAtEnd = (uint8_t)(maxBlanks2 - (unsigned int)temp1);
}
assert(blanksAtEnd < 8);

Expand Down

0 comments on commit 9d1cb5b

Please sign in to comment.