From e41f0c2cce01ec7059fcbfc5551ca9a1371626e3 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Sun, 29 Aug 2021 15:49:12 +0100 Subject: [PATCH] Fix build failure on Windows. --- src/bmffimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bmffimage.cpp b/src/bmffimage.cpp index fbcff0e1..7e915920 100644 --- a/src/bmffimage.cpp +++ b/src/bmffimage.cpp @@ -525,7 +525,7 @@ namespace Exiv2 enforce(length < static_cast(std::numeric_limits::max()), kerCorruptedMetadata); DataBuf xmp(static_cast(length+1)); - xmp.write_uint8(length, 0); // ensure xmp is null terminated! + xmp.write_uint8(static_cast(length), 0); // ensure xmp is null terminated! if ( io_->read(xmp.data(0), static_cast(length)) != static_cast(length) ) throw Error(kerInputDataReadFailed); if ( io_->error() )