summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/fdi_dsk.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-09-17 09:41:35 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-09-17 09:43:06 -0400
commit676e44ca955121808828ddc7a8a024dc721f682c (patch)
tree64ca682d6e9dc0a752339f39f1900cc3b3c50fdb /src/lib/formats/fdi_dsk.cpp
parent2f7b1f05c72e568032930e7ceba2db0b4cb63e1a (diff)
imageutl.h: Retire pick_integer_[bl]e and place_integer_[bl]e in favor of the simpler functions in multibyte.h
* multibyte.h: Add constexpr for getters and noexcept for all functions
Diffstat (limited to 'src/lib/formats/fdi_dsk.cpp')
-rw-r--r--src/lib/formats/fdi_dsk.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/formats/fdi_dsk.cpp b/src/lib/formats/fdi_dsk.cpp
index 71805508ab2..edeeeea65ad 100644
--- a/src/lib/formats/fdi_dsk.cpp
+++ b/src/lib/formats/fdi_dsk.cpp
@@ -19,6 +19,8 @@
#include "imageutl.h"
#include "flopimg_legacy.h"
+#include "multibyte.h"
+
/***************************************************************************
PARAMETERS
***************************************************************************/
@@ -237,7 +239,7 @@ FLOPPY_CONSTRUCT( fdi_dsk_construct )
floppy_image_read(floppy, &header, 0, sizeof(header));
tag->version = header.version[0];
- tag->tracks = pick_integer_be(header.ltrack, 0, 2) + 1;
+ tag->tracks = get_u16be(header.ltrack) + 1;
tag->heads = header.lhead + 1;
if (LOG)