diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/lib/formats/pc_dsk.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
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
Diffstat (limited to 'src/lib/formats/pc_dsk.cpp')
-rw-r--r-- | src/lib/formats/pc_dsk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/pc_dsk.cpp b/src/lib/formats/pc_dsk.cpp index a2e597294f0..73ef727cdaf 100644 --- a/src/lib/formats/pc_dsk.cpp +++ b/src/lib/formats/pc_dsk.cpp @@ -16,7 +16,7 @@ struct pc_disk_sizes { - UINT32 image_size; + uint32_t image_size; int sectors; int heads; }; @@ -43,7 +43,7 @@ static const struct pc_disk_sizes disk_sizes[] = static floperr_t pc_dsk_compute_geometry(floppy_image_legacy *floppy, struct basicdsk_geometry *geometry) { int i; - UINT64 size; + uint64_t size; memset(geometry, 0, sizeof(*geometry)); size = floppy_image_size(floppy); @@ -67,12 +67,12 @@ static floperr_t pc_dsk_compute_geometry(floppy_image_legacy *floppy, struct bas * get info from boot sector. * not correct on all disks */ - UINT8 scl, spt, heads; + uint8_t scl, spt, heads; floppy_image_read(floppy, &scl, 0x0c, 1); floppy_image_read(floppy, &spt, 0x18, 1); floppy_image_read(floppy, &heads, 0x1A, 1); - if (size == ((UINT64) scl) * spt * heads * 0x200) + if (size == ((uint64_t) scl) * spt * heads * 0x200) { geometry->sectors = spt; geometry->heads = heads; |