1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Corrects warnings in the CSW, CPC DSK, ZX8081 data encoding, and PRG and binary cartridges.

This commit is contained in:
Thomas Harte
2017-11-12 17:46:06 -05:00
parent d2ba7d7430
commit 792061a82b
5 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ static std::shared_ptr<File> ZX80FileFromData(const std::vector<uint8_t> &data)
uint16_t display_address = short_at(0xc, data);
// check that the end of file is contained within the supplied data
if(end_of_file - 0x4000 > data.size()) return nullptr;
if(static_cast<size_t>(end_of_file - 0x4000) > data.size()) return nullptr;
// check for the proper ordering of buffers
if(vars > end_of_file) return nullptr;