From b010ff55ca6cbd8c530f062ecd633a2c4606c1dc Mon Sep 17 00:00:00 2001 From: Ozgur Ozcitak Date: Wed, 15 May 2019 15:18:07 +0300 Subject: [PATCH] Fix type conversion for sbyte array --- ExifLibrary/ExifProperty.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExifLibrary/ExifProperty.cs b/ExifLibrary/ExifProperty.cs index 1e74371..90bc154 100644 --- a/ExifLibrary/ExifProperty.cs +++ b/ExifLibrary/ExifProperty.cs @@ -187,7 +187,7 @@ public override ExifInterOperability Interoperability { byte[] data = new byte[mValue.Length]; Buffer.BlockCopy(mValue, 0, data, 0, mValue.Length); - return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), InterOpType.SBYTE, data.Length, data); + return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), InterOpType.SBYTE, (uint)data.Length, data); } } }