Merge pull request #13181 from tygyh/Replace-'reinterpret_cast'

Replace 'reinterpret_cast' with 'static_cast'
This commit is contained in:
JosJuice
2025-03-15 15:31:38 +01:00
committed by GitHub
26 changed files with 31 additions and 36 deletions

View File

@ -84,7 +84,7 @@ int SDCardDiskIOCtl(File::IOFile* image, u8 pdrv, u8 cmd, void* buff)
case CTRL_SYNC:
return RES_OK;
case GET_SECTOR_COUNT:
*reinterpret_cast<LBA_t*>(buff) = image->GetSize() / SECTOR_SIZE;
*static_cast<LBA_t*>(buff) = image->GetSize() / SECTOR_SIZE;
return RES_OK;
default:
WARN_LOG_FMT(COMMON, "Unexpected SD image ioctl {}", cmd);