mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-14 13:33:42 +00:00
Resolves implicit conversion warning.
This commit is contained in:
parent
46c76b9c07
commit
ce2d3c6e82
@ -188,7 +188,7 @@ static std::list<std::shared_ptr<Storage::Cartridge::Cartridge>>
|
|||||||
std::vector<Storage::Cartridge::Cartridge::Segment> output_segments;
|
std::vector<Storage::Cartridge::Cartridge::Segment> output_segments;
|
||||||
if(segment.data.size() & 0x1fff) {
|
if(segment.data.size() & 0x1fff) {
|
||||||
std::vector<uint8_t> truncated_data;
|
std::vector<uint8_t> truncated_data;
|
||||||
std::vector<uint8_t>::difference_type truncated_size = static_cast<std::vector<uint8_t>::difference_type>(segment.data.size() & ~0x1fff);
|
std::vector<uint8_t>::difference_type truncated_size = static_cast<std::vector<uint8_t>::difference_type>(segment.data.size()) & ~0x1fff;
|
||||||
truncated_data.insert(truncated_data.begin(), segment.data.begin(), segment.data.begin() + truncated_size);
|
truncated_data.insert(truncated_data.begin(), segment.data.begin(), segment.data.begin() + truncated_size);
|
||||||
output_segments.emplace_back(start_address, truncated_data);
|
output_segments.emplace_back(start_address, truncated_data);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user