Skip to content

Commit

Permalink
Cast to eliminate comparison warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Mar 13, 2020
1 parent 5d4d848 commit 0d1d3e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/e57/libE57Format/src/ImageFileImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,8 @@ namespace e57
}

/// Check if file length matches actual physical length
if (header.filePhysicalLength != file->length(CheckedFile::Physical))
if ((off_t)header.filePhysicalLength !=
file->length(CheckedFile::Physical))
{
throw E57_EXCEPTION2(E57_ERROR_BAD_FILE_LENGTH,
"fileName=" + file->fileName()
Expand Down

0 comments on commit 0d1d3e7

Please sign in to comment.