From 3ce8db8b889cbebdfe13aa394f5b6a9a9d00e25c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 9 Sep 2021 22:35:11 +0200 Subject: [PATCH] cov: keep 64bit arithmetic Highly unlikely this case will ever need 64bit math, but just in case, keep the expression as 64bit. --- lib/report/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/report/report.c b/lib/report/report.c index 222d3f4b6..0fd0f30ac 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -2342,7 +2342,7 @@ static int _lv_size_disp(struct dm_report *rh, struct dm_pool *mem, uint64_t size = lv->le_count; if (seg && !lv_is_raid_image(lv)) - size -= seg->reshape_len * (seg->area_count > 2 ? (seg->area_count - seg->segtype->parity_devs) : 1); + size -= (uint64_t) seg->reshape_len * (seg->area_count > 2 ? (seg->area_count - seg->segtype->parity_devs) : 1); size *= lv->vg->extent_size;