ext2spice/ext2spice.c: Multiplication result converted to larger type
Fix code scanning alert no. 45: Multiplication result converted to larger type (#61) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
7e04089872
commit
a6db54c0b7
|
|
@ -2142,7 +2142,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM)
|
||||||
if (esScale < 0)
|
if (esScale < 0)
|
||||||
fprintf(esSpiceF, "%g", l * scale);
|
fprintf(esSpiceF, "%g", l * scale);
|
||||||
else if (plist->parm_scale != 1.0)
|
else if (plist->parm_scale != 1.0)
|
||||||
fprintf(esSpiceF, "%g", l * scale * esScale
|
fprintf(esSpiceF, "%g", (double)l * scale * esScale
|
||||||
* plist->parm_scale * 1E-6);
|
* plist->parm_scale * 1E-6);
|
||||||
else
|
else
|
||||||
esSIvalue(esSpiceF, 1.0E-6 * (l + plist->parm_offset)
|
esSIvalue(esSpiceF, 1.0E-6 * (l + plist->parm_offset)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue