From b5dc5ec11fcb67c166ccfdb971b1a496e27fafe0 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Sat, 10 Feb 2024 18:31:29 +0800 Subject: [PATCH] makeDetailsMask() (int)new->nCellsPainted (p22b) --- Meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.