From ee5dae4dddef48bed6d9ed4859680f91e7ff83ee Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Mon, 1 Aug 2022 08:32:48 -0400 Subject: [PATCH] Fix implicit cast warning. --- src/tiffcomposite_int.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tiffcomposite_int.cpp b/src/tiffcomposite_int.cpp index 837f46f11d..1b96a9ea57 100644 --- a/src/tiffcomposite_int.cpp +++ b/src/tiffcomposite_int.cpp @@ -995,11 +995,11 @@ uint32_t TiffEntryBase::writeOffset(byte* buf, size_t offset, TiffType tiffType, case ttSignedShort: if (offset > std::numeric_limits::max()) throw Error(ErrorCode::kerOffsetOutOfRange); - rc = us2Data(buf, static_cast(offset), byteOrder); + rc = static_cast(us2Data(buf, static_cast(offset), byteOrder)); break; case ttUnsignedLong: case ttSignedLong: - rc = l2Data(buf, static_cast(offset), byteOrder); + rc = static_cast(l2Data(buf, static_cast(offset), byteOrder)); break; default: throw Error(ErrorCode::kerUnsupportedDataAreaOffsetType); @@ -1100,10 +1100,10 @@ uint32_t TiffBinaryArray::doWrite(IoWrapper& ioWrapper, ByteOrder byteOrder, siz size_t elSize = TypeInfo::typeSize(toTypeId(cfg()->elTiffType_, 0, cfg()->group_)); switch (elSize) { case 2: - idx += us2Data(buf, static_cast(size()), byteOrder); + idx += static_cast(us2Data(buf, static_cast(size()), byteOrder)); break; case 4: - idx += ul2Data(buf, static_cast(size()), byteOrder); + idx += static_cast(ul2Data(buf, static_cast(size()), byteOrder)); break; default: break;