diff options
author | 2017-05-16 13:56:10 +0100 | |
---|---|---|
committer | 2017-05-16 13:56:52 +0100 | |
commit | 442eddbfed7fd5516858e317fa239d471b14e6a6 (patch) | |
tree | a849aeb3f29505a9edc0a72f0aeef7f3c3c3192a | |
parent | a70786a0070c5bdba7e1b19baa6bd98a5c44e774 (diff) |
fix MSVC build (nw)
-rw-r--r-- | src/lib/formats/hpi_dsk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/hpi_dsk.cpp b/src/lib/formats/hpi_dsk.cpp index 2f48f873f59..a8ebe915606 100644 --- a/src/lib/formats/hpi_dsk.cpp +++ b/src/lib/formats/hpi_dsk.cpp @@ -61,7 +61,7 @@ constexpr uint32_t ID_CD_PATTERN= 0x55552a54; // C/D pattern of 0xff + ID_AM constexpr uint32_t DATA_CD_PATTERN = 0x55552a44; // C/D pattern of 0xff + DATA_AM constexpr unsigned GAP1_SIZE = 17; // Size of gap 1 (+1) constexpr unsigned GAP2_SIZE = 35; // Size of gap 2 (+1) -constexpr unsigned ID_DATA_OFFSET = 30 * 16; // Nominal distance (in cells) between ID & DATA AM +constexpr int ID_DATA_OFFSET = 30 * 16; // Nominal distance (in cells) between ID & DATA AM // Size of image file (holding 77 cylinders) constexpr unsigned HPI_IMAGE_SIZE = HPI_TRACKS * HPI_HEADS * HPI_SECTORS * HPI_SECTOR_SIZE; constexpr unsigned HPI_RED_TRACKS = 75; // Reduced number of tracks @@ -355,7 +355,7 @@ bool hpi_format::get_next_sector(const uint8_t *bitstream , int bitstream_size , std::vector<uint8_t> block; while (true) { // Scan for ID block first - int id_pos; + int id_pos = 0; while (true) { if (block.size() == 0) { block = get_next_id_n_block(bitstream , bitstream_size , pos , id_pos); |