mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
ext2spice/ext2spice.c: Multiplication result converted to larger type
Applying similat fix to others in the file, promote to double ASAP. Copilot Autofix: Retry and if the problem persists contact support. CodeQL: https://github.com/dlmiles/magic/security/code-scanning/46
This commit is contained in:
committed by
Tim Edwards
parent
98b5f57ea0
commit
4dc708aea2
@@ -2166,7 +2166,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM)
|
||||
if (esScale < 0)
|
||||
fprintf(esSpiceF, "%g", dval * scale);
|
||||
else if (plist->parm_scale != 1.0)
|
||||
fprintf(esSpiceF, "%g", dval * scale * esScale
|
||||
fprintf(esSpiceF, "%g", (double)dval * scale * esScale
|
||||
* plist->parm_scale * 1E-6);
|
||||
else
|
||||
esSIvalue(esSpiceF, (dval + plist->parm_offset)
|
||||
|
||||
Reference in New Issue
Block a user