From 7e0408987293c9dc87ab9c63d2faf241f886f1d0 Mon Sep 17 00:00:00 2001 From: Darryl Miles Date: Mon, 30 Sep 2024 07:46:50 +0100 Subject: [PATCH] ext2spice/ext2spice.c: Multiplication result converted to larger type Fix code scanning alert no. 44: Multiplication result converted to larger type (#60) 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 54dff3d7..5605dfa5 100644 --- a/ext2spice/ext2spice.c +++ b/ext2spice/ext2spice.c @@ -2078,7 +2078,7 @@ spcWriteParams(dev, hierName, scale, l, w, sdM) if (esScale < 0) fprintf(esSpiceF, "%g", parmval * scale); else if (plist->parm_scale != 1.0) - fprintf(esSpiceF, "%g", parmval * scale + fprintf(esSpiceF, "%g", (double)parmval * scale * esScale * plist->parm_scale * 1E-6); else esSIvalue(esSpiceF, 1.0E-12 * (parmval + plist->parm_offset)