Commit 862c9b13 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot

Merge topic 'correct_tiff_reader_warnings'

44a63799 Correct a signed to unsigned warning in vtkTIFFReader
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !1678
parents fa683f86 44a63799
Pipeline #19159 running with stage
......@@ -284,9 +284,9 @@ bool vtkTIFFReader::vtkTIFFReaderInternal::Initialize()
{
// look for the number of images
std::string desc = description[0];
int pos = desc.find("images=");
int pos2 = desc.find("\n");
if ((pos != -1) && (pos2 != -1))
std::string::size_type pos = desc.find("images=");
std::string::size_type pos2 = desc.find("\n");
if ( (pos != std::string::npos) && (pos2 != std::string::npos) )
{
this->NumberOfPages = atoi(desc.substr(pos+7,pos2-pos-7).c_str());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment