1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 03:29:40 +00:00

Converts all uint8_t and uint16_t casts to the functional style.

This commit is contained in:
Thomas Harte
2017-10-21 21:50:53 -04:00
parent ec999446e8
commit e983854e71
38 changed files with 235 additions and 232 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
using namespace Storage::Data::ZX8081;
static uint16_t short_at(size_t address, const std::vector<uint8_t> &data) {
return (uint16_t)(data[address] | (data[address + 1] << 8));
return static_cast<uint16_t>(data[address] | (data[address + 1] << 8));
}
static std::shared_ptr<File> ZX80FileFromData(const std::vector<uint8_t> &data) {