From 1d01acce0658ef17376876bee529ac440afa4a09 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 21 Jul 2017 21:53:05 -0400 Subject: [PATCH] Fixed differing types of loop variables and targets. --- Storage/Disk/Encodings/MFM.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Storage/Disk/Encodings/MFM.cpp b/Storage/Disk/Encodings/MFM.cpp index 04f419362..33c69e0b3 100644 --- a/Storage/Disk/Encodings/MFM.cpp +++ b/Storage/Disk/Encodings/MFM.cpp @@ -141,12 +141,12 @@ template std::shared_ptr shifter.add_index_address_mark(); // add the post-index mark - for(int c = 0; c < post_index_address_mark_bytes; c++) shifter.add_byte(post_index_address_mark_value); + for(size_t c = 0; c < post_index_address_mark_bytes; c++) shifter.add_byte(post_index_address_mark_value); // add sectors for(const Sector §or : sectors) { // gap - for(int c = 0; c < pre_address_mark_bytes; c++) shifter.add_byte(0x00); + for(size_t c = 0; c < pre_address_mark_bytes; c++) shifter.add_byte(0x00); // sector header shifter.add_ID_address_mark(); @@ -158,8 +158,8 @@ template std::shared_ptr shifter.add_crc(); // gap - for(int c = 0; c < post_address_mark_bytes; c++) shifter.add_byte(0x4e); - for(int c = 0; c < pre_data_mark_bytes; c++) shifter.add_byte(0x00); + for(size_t c = 0; c < post_address_mark_bytes; c++) shifter.add_byte(0x4e); + for(size_t c = 0; c < pre_data_mark_bytes; c++) shifter.add_byte(0x00); // data shifter.add_data_address_mark(); @@ -170,8 +170,8 @@ template std::shared_ptr shifter.add_crc(); // gap - for(int c = 0; c < post_data_bytes; c++) shifter.add_byte(0x00); - for(int c = 0; c < inter_sector_gap; c++) shifter.add_byte(0x4e); + for(size_t c = 0; c < post_data_bytes; c++) shifter.add_byte(0x00); + for(size_t c = 0; c < inter_sector_gap; c++) shifter.add_byte(0x4e); } while(segment.data.size() < expected_track_bytes) shifter.add_byte(0x00);