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:
Darryl L. Miles 2024-09-29 23:00:00 +01:00 committed by Tim Edwards
parent 98b5f57ea0
commit 4dc708aea2
1 changed files with 1 additions and 1 deletions

View File

@ -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)