From 676f152fe61bffe6b1f7b36c45d47fe6359bb4ec Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Thu, 15 Feb 2024 14:52:33 +0800 Subject: [PATCH] makeDetailsMask() blanksAtEnd (q21k) --- Meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meter.c b/Meter.c index ed896d227..f1128320b 100644 --- a/Meter.c +++ b/Meter.c @@ -534,7 +534,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre distance = ceil(distance); unsigned int maxBlanks2 = 8 - (unsigned int)(int)numDots / 2; - int temp1 = MAXIMUM((int)maxBlanks2, (int)distance); + unsigned int temp1 = MAXIMUM((unsigned int)maxBlanks2, (unsigned int)(int)distance); blanksAtEnd = (uint8_t)((unsigned int)temp1 - (unsigned int)(int)distance); } assert(blanksAtEnd < 8);