ext2spice/ext2spice.c: Multiplication result converted to larger type

Fix code scanning alert no. 47: Multiplication result converted to larger type (#62)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Darryl Miles 2024-09-30 07:47:20 +01:00 committed by Tim Edwards
parent a6db54c0b7
commit 3becc0e03f
1 changed files with 1 additions and 1 deletions

View File

@ -2184,7 +2184,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM)
if (esScale < 0)
fprintf(esSpiceF, "%g", w * scale);
else if (plist->parm_scale != 1.0)
fprintf(esSpiceF, "%g", w * scale * esScale
fprintf(esSpiceF, "%g", (double)w * scale * esScale
* plist->parm_scale * 1E-6);
else
esSIvalue(esSpiceF, 1.0E-6 * (w + plist->parm_offset)