From 6cae64edc52801b3d40ff45bceafa232790051cd Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 07:12:08 +0100 Subject: [PATCH] drc/DRCbasic.c: Multiplication result converted to larger type Fix code scanning alert no. 35: Multiplication result converted to larger type (#53) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- drc/DRCbasic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drc/DRCbasic.c b/drc/DRCbasic.c index 1ea451e2..0a6e1fdb 100644 --- a/drc/DRCbasic.c +++ b/drc/DRCbasic.c @@ -176,7 +176,7 @@ areaCheck(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) {