diff --git a/OpenEXR/IlmImf/ImfMultiPartOutputFile.cpp b/OpenEXR/IlmImf/ImfMultiPartOutputFile.cpp index 12ee4f12ca..27add0c27f 100644 --- a/OpenEXR/IlmImf/ImfMultiPartOutputFile.cpp +++ b/OpenEXR/IlmImf/ImfMultiPartOutputFile.cpp @@ -498,7 +498,7 @@ MultiPartOutputFile::Data::writeChunkTableOffsets (vector &part Int64 pos = os->tellp(); - if (pos == Int64(-1)) + if (pos == static_cast(-1)) IEX_NAMESPACE::throwErrnoExc ("Cannot determine current file position (%T)."); parts[i]->chunkOffsetTablePosition = os->tellp(); diff --git a/OpenEXR/IlmImf/ImfOutputFile.cpp b/OpenEXR/IlmImf/ImfOutputFile.cpp index d5034cb028..d30a55f270 100644 --- a/OpenEXR/IlmImf/ImfOutputFile.cpp +++ b/OpenEXR/IlmImf/ImfOutputFile.cpp @@ -255,7 +255,7 @@ writeLineOffsets (OPENEXR_IMF_INTERNAL_NAMESPACE::OStream &os, const vector(-1)) IEX_NAMESPACE::throwErrnoExc ("Cannot determine current file position (%T)."); for (unsigned int i = 0; i < lineOffsets.size(); i++)