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>
This commit is contained in:
Darryl Miles 2024-09-30 07:17:51 +01:00 committed by Tim Edwards
parent 1fb82e7225
commit 691c27081f
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{