From 98b5f57ea0004907e94788cea46add450b631a3c Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 07:47:40 +0100 Subject: [PATCH] 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> --- ext2spice/ext2spice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext2spice/ext2spice.c b/ext2spice/ext2spice.c index 3f877444..50c2ee93 100644 --- a/ext2spice/ext2spice.c +++ b/ext2spice/ext2spice.c @@ -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)