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/adam_cas.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/formats/adam_cas.cpp') diff --git a/src/lib/formats/adam_cas.cpp b/src/lib/formats/adam_cas.cpp index 30deb27a1a9..3de9413cb90 100644 --- a/src/lib/formats/adam_cas.cpp +++ b/src/lib/formats/adam_cas.cpp @@ -83,10 +83,10 @@ cassette_image::error coladam_put_byte(cassette_image *cass, int channel, double return err; } -cassette_image::error coladam_put_block(cassette_image *cass, int channel, double *time_index, int *prev_sign, int block_index, UINT8 *buffer, int layout_type) +cassette_image::error coladam_put_block(cassette_image *cass, int channel, double *time_index, int *prev_sign, int block_index, uint8_t *buffer, int layout_type) { int i, checksum_16=0; - UINT8 header[] = { 0x16, 0x48, 0x45, 0x00, static_cast(block_index), 0xff, static_cast(0xff - block_index), 0x00, 0x80, 0xf4 }; + uint8_t header[] = { 0x16, 0x48, 0x45, 0x00, static_cast(block_index), 0xff, static_cast(0xff - block_index), 0x00, 0x80, 0xf4 }; cassette_image::error err; if (layout_type == TYPE_GW) { @@ -130,7 +130,7 @@ static cassette_image::error coladam_ddp_load( cassette_image *cass ) { double time = 0.; int i, block, prev_sign=-1; - UINT8 buffer[0x400]; + uint8_t buffer[0x400]; cassette_image::error err = cassette_image::error::SUCCESS; // It would appear that data packs that originally had the type GW data layout and headers work fine when converted to type -- cgit v1.2.3-70-g09d2