Skip to content

Commit cacb54e

Browse files
committed
use auto
Signed-off-by: Rosen Penev <[email protected]>
1 parent fdfcde5 commit cacb54e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jpgimage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ DataBuf Photoshop::setIptcIrb(const byte* pPsData, size_t sizePsData, const Iptc
181181

182182
// Write existing stuff after record, skip the current and all remaining IPTC blocks
183183
size_t pos = sizeFront;
184-
long nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
184+
auto nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
185185
enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
186186
while (0 == Photoshop::locateIptcIrb(pPsData + pos, nextSizeData, &record, &sizeHdr, &sizeIptc)) {
187187
const auto newPos = static_cast<size_t>(record - pPsData);

0 commit comments

Comments
 (0)