Skip to content

Commit

Permalink
Convert constructor casts to static_cast
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Jul 23, 2019
1 parent 5cbf3cb commit 625b95f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImf/ImfMultiPartOutputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ MultiPartOutputFile::Data::writeChunkTableOffsets (vector<OutputPartData*> &part

Int64 pos = os->tellp();

if (pos == Int64(-1))
if (pos == static_cast<Int64>(-1))
IEX_NAMESPACE::throwErrnoExc ("Cannot determine current file position (%T).");

parts[i]->chunkOffsetTablePosition = os->tellp();
Expand Down
2 changes: 1 addition & 1 deletion OpenEXR/IlmImf/ImfOutputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ writeLineOffsets (OPENEXR_IMF_INTERNAL_NAMESPACE::OStream &os, const vector<Int6
{
Int64 pos = os.tellp();

if (pos == Int64(-1))
if (pos == static_cast<Int64>(-1))
IEX_NAMESPACE::throwErrnoExc ("Cannot determine current file position (%T).");

for (unsigned int i = 0; i < lineOffsets.size(); i++)
Expand Down

0 comments on commit 625b95f

Please sign in to comment.