Fix all x64 warnings in the AppleWin proj (PR #1434)

NB. 10 warnings still in libyaml proj (but there's no upstream update - so will leave as-is).
This commit is contained in:
TomCh
2025-09-22 21:25:35 +01:00
committed by GitHub
parent e1643a1ce3
commit 1a68914a4a
36 changed files with 147 additions and 146 deletions
+2 -2
View File
@@ -758,7 +758,7 @@ void Disk2InterfaceCard::GetFilenameAndPathForSaveState(std::string& filename, s
filename = GetBaseName(i);
std::string pathname = DiskGetFullPathName(i);
int idx = pathname.find_last_of(PATH_SEPARATOR);
size_t idx = pathname.find_last_of(PATH_SEPARATOR);
if (idx >= 0 && idx+1 < (int)pathname.length()) // path exists?
{
path = pathname.substr(0, idx+1);
@@ -2468,7 +2468,7 @@ void Disk2InterfaceCard::LoadSnapshotDriveUnit(YamlLoadHelper& yamlLoadHelper, U
if (!bImageError)
{
if ((m_floppyDrive[unit].m_disk.m_trackimage == NULL) && m_floppyDrive[unit].m_disk.m_nibbles)
AllocTrack(unit, track.size());
AllocTrack(unit, (UINT)track.size());
if (m_floppyDrive[unit].m_disk.m_trackimage == NULL)
bImageError = true;