Skip to content

Commit 5e4b069

Browse files
committed
adds a hacky workaround to work with MD5 implementation from XMP-Toolkit-sdk
1 parent 5abb38d commit 5e4b069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ std::string Converter::computeExifDigest(bool tiff) {
12651265
continue;
12661266
DataBuf data(pos->size());
12671267
pos->copy(data.data(), littleEndian /* FIXME ? */);
1268-
MD5Update(&context, data.c_data(), static_cast<uint32_t>(data.size()));
1268+
MD5Update(&context, const_cast<XMP_Uns8*>(data.c_data()), static_cast<uint32_t>(data.size()));
12691269
}
12701270
}
12711271
MD5Final(digest, &context);

0 commit comments

Comments
 (0)