mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
extract/ExtCouple.c: Multiplication result converted to larger type
Fix code scanning alert no. 51: Multiplication result converted to larger type (#50) 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
d6cc790d48
commit
00086817a4
+1
-1
@@ -963,7 +963,7 @@ extRemoveSubcap(bp, clip, esws)
|
||||
|
||||
if (dnear < 0) dnear = 0; /* Don't count underlap */
|
||||
mult = ExtCurStyle->exts_overlapMult[ta][0];
|
||||
snear = 0.6366 * atan(mult * dnear);
|
||||
snear = 0.6366 * atan((double)mult * dnear);
|
||||
|
||||
/* "snear" is the fractional portion of the fringe cap seen by */
|
||||
/* the substrate, so (1.0 - snear) is the part that is blocked. */
|
||||
|
||||
Reference in New Issue
Block a user