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:
parent
98b5f57ea0
commit
4dc708aea2
|
|
@ -2166,7 +2166,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM)
|
||||||
if (esScale < 0)
|
if (esScale < 0)
|
||||||
fprintf(esSpiceF, "%g", dval * scale);
|
fprintf(esSpiceF, "%g", dval * scale);
|
||||||
else if (plist->parm_scale != 1.0)
|
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);
|
* plist->parm_scale * 1E-6);
|
||||||
else
|
else
|
||||||
esSIvalue(esSpiceF, (dval + plist->parm_offset)
|
esSIvalue(esSpiceF, (dval + plist->parm_offset)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue