mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-03 01:53:37 +02:00
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>
This commit is contained in:
committed by
Tim Edwards
co-authored by
Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent
5a8cdb68d0
commit
6cae64edc5
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user