mirror of https://github.com/akuker/RASCSI.git
fix asserts
This commit is contained in:
parent
1992882b31
commit
90498dfccb
|
@ -278,7 +278,6 @@ bool DiskTrack::Save(const string& path)
|
|||
|
||||
bool DiskTrack::ReadSector(vector<uint8_t>& buf, int sec) const
|
||||
{
|
||||
assert(buf);
|
||||
assert((sec >= 0) & (sec < 0x100));
|
||||
|
||||
LOGTRACE("%s reading sector: %d", __PRETTY_FUNCTION__,sec);
|
||||
|
@ -303,7 +302,6 @@ bool DiskTrack::ReadSector(vector<uint8_t>& buf, int sec) const
|
|||
|
||||
bool DiskTrack::WriteSector(const vector<uint8_t>& buf, int sec)
|
||||
{
|
||||
assert(buf);
|
||||
assert((sec >= 0) & (sec < 0x100));
|
||||
assert(!dt.raw);
|
||||
|
||||
|
|
|
@ -85,9 +85,6 @@ bool PosixFileHandle::WriteSector(const vector<uint8_t>& buf, int block)
|
|||
}
|
||||
|
||||
assert(block < sec_blocks);
|
||||
assert(memory_block);
|
||||
|
||||
assert((block * sec_size) <= (sb.st_size + sec_size));
|
||||
|
||||
size_t sector_size_bytes = (size_t)1 << sec_size;
|
||||
|
||||
|
|
Loading…
Reference in New Issue