mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-10-27 06:20:50 +00:00
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:
1 parent
92f66cd110
commit
33af1debcf
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user