summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/cassimg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/cassimg.cpp')
-rw-r--r--src/lib/formats/cassimg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/cassimg.cpp b/src/lib/formats/cassimg.cpp
index e62d2013ecb..d1b3495e3e8 100644
--- a/src/lib/formats/cassimg.cpp
+++ b/src/lib/formats/cassimg.cpp
@@ -779,7 +779,7 @@ casserr_t cassette_read_modulated_data(cassette_image *cassette, int channel, do
}
else
{
- buffer_length = std::min(length, UINT64(100000));
+ buffer_length = std::min<UINT64>(length, 100000);
alloc_buffer = (UINT8*)malloc(buffer_length);
if (!alloc_buffer)
{