Skip to content

Commit 07a271a

Browse files
committed
1 parent f3ecbf9 commit 07a271a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: frmts/mrf/LERCV1/Lerc1Image.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,8 @@ bool Lerc1Image::readZTile(Byte **ppByte, size_t &nRemainingBytes, int r0,
957957
return true;
958958
}
959959

960-
idataVec.resize((r1 - r0) * (c1 - c0)); // max size, gets adjusted
960+
idataVec.resize(static_cast<size_t>(r1 - r0) *
961+
(c1 - c0)); // max size, gets adjusted
961962
if (!blockread(&ptr, nRemainingBytes, idataVec))
962963
return false;
963964

0 commit comments

Comments
 (0)