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