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

Commutes uint8_t *, uint16_t *, uint32_t *, size_t, off_t and long to functional-style casts.

This commit is contained in:
Thomas Harte
2017-10-21 22:30:15 -04:00
parent e983854e71
commit ad9df4bb90
36 changed files with 164 additions and 164 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ HFE::HFE(const char *file_name) :
head_count_ = fgetc(file_);
fseek(file_, 7, SEEK_CUR);
track_list_offset_ = (long)fgetc16le() << 9;
track_list_offset_ = static_cast<long>(fgetc16le() << 9);
}
HFE::~HFE() {
@@ -49,7 +49,7 @@ uint16_t HFE::seek_track(Track::Address address) {
// based on an assumption of two heads.
fseek(file_, track_list_offset_ + address.position * 4, SEEK_SET);
long track_offset = (long)fgetc16le() << 9;
long track_offset = static_cast<long>(fgetc16le() << 9);
uint16_t track_length = fgetc16le();
fseek(file_, track_offset, SEEK_SET);