From ddb290d5f615019c33c42b8d94e5a5254cabcf33 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 13:13:17 +0200 Subject: NOTICE (TYPE NAME CONSOLIDATION) Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8 --- src/lib/formats/concept_dsk.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib/formats/concept_dsk.cpp') diff --git a/src/lib/formats/concept_dsk.cpp b/src/lib/formats/concept_dsk.cpp index c23a3c35675..eea65064fc7 100644 --- a/src/lib/formats/concept_dsk.cpp +++ b/src/lib/formats/concept_dsk.cpp @@ -72,15 +72,15 @@ bool cc525dsdd_format::supports_save() const return true; } -void cc525dsdd_format::find_size(io_generic *io, UINT8 &track_count, UINT8 &head_count, UINT8 §or_count) +void cc525dsdd_format::find_size(io_generic *io, uint8_t &track_count, uint8_t &head_count, uint8_t §or_count) { - UINT64 size = io_generic_size(io); + uint64_t size = io_generic_size(io); track_count = 77; head_count = 2; sector_count = 9; - UINT32 expected_size = 512 * track_count*head_count*sector_count; + uint32_t expected_size = 512 * track_count*head_count*sector_count; if (size == expected_size) { return; @@ -89,9 +89,9 @@ void cc525dsdd_format::find_size(io_generic *io, UINT8 &track_count, UINT8 &head track_count = head_count = sector_count = 0; } -int cc525dsdd_format::identify(io_generic *io, UINT32 form_factor) +int cc525dsdd_format::identify(io_generic *io, uint32_t form_factor) { - UINT8 track_count, head_count, sector_count; + uint8_t track_count, head_count, sector_count; find_size(io, track_count, head_count, sector_count); if(track_count) @@ -99,12 +99,12 @@ int cc525dsdd_format::identify(io_generic *io, UINT32 form_factor) return 0; } -bool cc525dsdd_format::load(io_generic *io, UINT32 form_factor, floppy_image *image) +bool cc525dsdd_format::load(io_generic *io, uint32_t form_factor, floppy_image *image) { - UINT8 track_count, head_count, sector_count; + uint8_t track_count, head_count, sector_count; find_size(io, track_count, head_count, sector_count); - UINT8 sectdata[10*512]; + uint8_t sectdata[10*512]; desc_s sectors[10]; for(int i=0; i