From eab30a7eb707fded17c2b2bb64d8902da479077a Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Wed, 23 Feb 2005 16:21:42 +0000 Subject: [PATCH] Added cast required to compile with MSVC --- src/ifd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifd.cpp b/src/ifd.cpp index b2a603e1..683d2a3b 100644 --- a/src/ifd.cpp +++ b/src/ifd.cpp @@ -353,7 +353,8 @@ namespace Exiv2 { if (i->size_ > 4) { if (offset_ == 0) { // Set the 'guessed' IFD offset - offset_ = i->offset_ - (2 + 12 * preEntries.size() + 4); + offset_ = i->offset_ + - (2 + 12 * static_cast(preEntries.size()) + 4); } // Set the offset of the first data entry outside of the IFD if (i->offset_ - offset_ >= len) {