diff options
Diffstat (limited to 'src/lib/formats/ioprocs.cpp')
-rw-r--r-- | src/lib/formats/ioprocs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/ioprocs.cpp b/src/lib/formats/ioprocs.cpp index 3efb1055e56..0be7cab97f4 100644 --- a/src/lib/formats/ioprocs.cpp +++ b/src/lib/formats/ioprocs.cpp @@ -196,11 +196,11 @@ void io_generic_write_filler(struct io_generic *genio, UINT8 filler, UINT64 offs UINT8 buffer[512]; size_t this_length; - memset(buffer, filler, MIN(length, sizeof(buffer))); + memset(buffer, filler, std::min(length, sizeof(buffer))); while(length > 0) { - this_length = MIN(length, sizeof(buffer)); + this_length = std::min(length, sizeof(buffer)); io_generic_write(genio, buffer, offset, this_length); offset += this_length; length -= this_length; |