Potential fix for code scanning alert no. 37: Multiplication result converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Jean-François DEL NEROandCopilot Autofix powered by AI authored and GitHub committed 2026-10-11 23:14:39 +02:00
1 parent 92f66cd110
commit 33af1debcf
1 file changed
+1 -1
+1 -1
View File
@@ -1425,7 +1425,7 @@ HXCFE_SIDE * tg_generateTrackEx(int32_t number_of_sector,HXCFE_SECTCFG * sectorc
if(sectorconfigtab[i].gap3==0xFF)
{
// TODO: make integer this...
computedgap3=(uint32_t)floor((float)gap3period*(float)((float)sectorconfigtab[i].bitrate/(float)100000));
computedgap3=(uint32_t)floor(((double)gap3period) * (((double)sectorconfigtab[i].bitrate) / 100000.0));
switch(sectorconfigtab[i].trackencoding)
{