diff --git a/Meter.c b/Meter.c index 19b3e4976..7f771955c 100644 --- a/Meter.c +++ b/Meter.c @@ -515,7 +515,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre roundsUpInAscii = true; } else if (prev->nCellsPainted == 0 || prev->topPoint <= (double)(int)prev->nCellsPainted) { blanksAtEnd = (uint8_t)maxBlanks % 8; - } else if (new->nCellsPainted > new->topPoint) { + } else if ((double)(int)new->nCellsPainted > new->topPoint) { assert(new->nCellsPainted - new->topPoint < 1.0); assert(rem > 0.0); // Unlike other conditions, this one rounds to nearest for visual reason.