From 691c27081ff6d79deded3660d1dee945f7375fe5 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 07:17:51 +0100 Subject: [PATCH] drc/DRCcif.c: Multiplication result converted to larger type Fix code scanning alert no. 34: Multiplication result converted to larger type (#54) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- drc/DRCcif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drc/DRCcif.c b/drc/DRCcif.c index 3a170ff6..d597ec57 100644 --- a/drc/DRCcif.c +++ b/drc/DRCcif.c @@ -1076,7 +1076,7 @@ areaCifCheck(tile, arg) unsigned int i; int sqx, sqy; int sdist = arg->dCD_radial & 0xfff; - long sstest, ssdist = sdist * sdist; + long sstest, ssdist = (long) sdist * sdist; if ((arg->dCD_radial & RADIAL_NW) != 0) {