From 791d28eb322363ee93d3ffbeb4db7c15f1970b4b Mon Sep 17 00:00:00 2001 From: PM Date: Tue, 8 Oct 2024 08:40:45 +0530 Subject: [PATCH] adding braces improving code quality --- Meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meter.c b/Meter.c index 52c74287c..e1b8e34c0 100644 --- a/Meter.c +++ b/Meter.c @@ -130,7 +130,7 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) { double value = this->values[i]; if (isPositive(value) && this->total > 0.0) { value = MINIMUM(value, this->total); - actualBarWidth = ((value / this->total) * w); + actualBarWidth = (value / this->total) * w; blockSizes[i] = ceil(actualBarWidth); } else { blockSizes[i] = 0;