summaryrefslogtreecommitdiffstats
path: root/src/lib/formats/flopimg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/flopimg.cpp')
-rw-r--r--src/lib/formats/flopimg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/flopimg.cpp b/src/lib/formats/flopimg.cpp
index e51ff900116..ab28b539bed 100644
--- a/src/lib/formats/flopimg.cpp
+++ b/src/lib/formats/flopimg.cpp
@@ -492,7 +492,7 @@ static floperr_t floppy_readwrite_sector(floppy_image_legacy *floppy, int head,
if (err)
goto done;
- this_buffer_len = MIN(buffer_len, sector_length - offset);
+ this_buffer_len = std::min(buffer_len, size_t(sector_length - offset));
if (writing)
{