Skip to content

Commit

Permalink
makeDetailsMask optimization (j11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 9, 2024
1 parent 88bb5ce commit 3563f5c
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 @@ -511,7 +511,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
// (1.0 - rem) will not round to 1.0.
assert(rem <= 0.0 || rem >= (1.0 / UINT8_MAX));

double maxBlanks = (1.0 - rem) * 8.0;
double maxBlanks = 8.0 - rem * 8.0;

uint8_t blanksAtEnd;
bool roundsUpInAscii = false;
Expand Down

0 comments on commit 3563f5c

Please sign in to comment.