{
int ret = DrvUtil_ReadBlock(
Offset, Length, Buffer,
- ATA_ReadRaw, SECTOR_SIZE, (void*)disk
+ ATA_ReadRaw, SECTOR_SIZE, (void*)(Uint)disk
);
//Log("ATA_ReadFS: disk=%i, Offset=%lli, Length=%lli", disk, Offset, Length);
//Debug_HexDump("ATA_ReadFS", Buffer, Length);
Debug_HexDump("ATA_WriteFS", Buffer, Length);
return DrvUtil_WriteBlock(
Offset, Length, Buffer,
- ATA_ReadRaw, ATA_WriteRaw, SECTOR_SIZE, (void*)disk
+ ATA_ReadRaw, ATA_WriteRaw, SECTOR_SIZE, (void*)(Uint)disk
);
}
// --------------------------------------------------------------------
int LVM_AddVolumeVFS(const char *Name, int FD)
{
- return LVM_AddVolume(Name, (void*)FD, LVM_int_VFSReadEmul, LVM_int_VFSWriteEmul);
+ return LVM_AddVolume(Name, (void*)(Uint)FD, LVM_int_VFSReadEmul, LVM_int_VFSWriteEmul);
}
int LVM_AddVolume(const char *Name, void *Ptr, tLVM_ReadFcn Read, tLVM_WriteFcn Write)
blocksize = 512; // TODO: Don't assume
- rv = VFS_ReadAt( (int)Arg, BlockStart * blocksize, BlockCount * blocksize, Dest );
+ rv = VFS_ReadAt( (int)(Uint)Arg, BlockStart * blocksize, BlockCount * blocksize, Dest );
rv /= blocksize;
return rv;
}
blocksize = 512; // TODO: Don't assume
- rv = VFS_WriteAt( (int)Arg, BlockStart * blocksize, BlockCount * blocksize, Source );
+ rv = VFS_WriteAt( (int)(Uint)Arg, BlockStart * blocksize, BlockCount * blocksize, Source );
rv /= blocksize;
return rv;
}