Skip to content

Commit

Permalink
makeDetailsMask() (int)prev->nCellsPainted (p22a)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 18, 2024
1 parent 9ad1000 commit 89ac971
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 @@ -513,7 +513,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
assert(blanksAtTopCell < 8);
blanksAtEnd = (uint8_t)blanksAtTopCell;
roundsUpInAscii = true;
} else if (prev->nCellsPainted == 0 || prev->topPoint <= prev->nCellsPainted) {
} else if (prev->nCellsPainted == 0 || prev->topPoint <= (double)(int)prev->nCellsPainted) {
blanksAtEnd = (uint8_t)maxBlanks % 8;
} else if (new->nCellsPainted > new->topPoint) {
assert(new->nCellsPainted - new->topPoint < 1.0);
Expand Down

0 comments on commit 89ac971

Please sign in to comment.