mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
Corrects arithmetic on raw data blocks.
This commit is contained in:
@@ -114,8 +114,8 @@ CAS::CAS(const std::string &file_name) {
|
|||||||
file.seek(header_position + 8, SEEK_SET);
|
file.seek(header_position + 8, SEEK_SET);
|
||||||
const uint16_t length = file.get16le();
|
const uint16_t length = file.get16le();
|
||||||
|
|
||||||
file.seek(header_position, SEEK_SET);
|
file.seek(header_position + 8, SEEK_SET);
|
||||||
chunks_.emplace_back(false, false, file.read(size_t(length) + 2 + 8));
|
chunks_.emplace_back(false, false, file.read(size_t(length) + 2));
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user