From 9430067afd7b17416968ef7dc4d0aaa97f38bd9f 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 1bbb2fd06c..992b2de3c4 100644 --- a/src/tiffcomposite_int.cpp +++ b/src/tiffcomposite_int.cpp @@ -986,11 +986,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); @@ -1092,10 +1092,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;