diff --git a/frmts/mrf/LERCV1/Lerc1Image.cpp b/frmts/mrf/LERCV1/Lerc1Image.cpp index ec44b0885765..c48c321e0d39 100644 --- a/frmts/mrf/LERCV1/Lerc1Image.cpp +++ b/frmts/mrf/LERCV1/Lerc1Image.cpp @@ -957,7 +957,8 @@ bool Lerc1Image::readZTile(Byte **ppByte, size_t &nRemainingBytes, int r0, return true; } - idataVec.resize((r1 - r0) * (c1 - c0)); // max size, gets adjusted + idataVec.resize(static_cast(r1 - r0) * + (c1 - c0)); // max size, gets adjusted if (!blockread(&ptr, nRemainingBytes, idataVec)) return false;