Commit 44a63799 authored by Robert Maynard's avatar Robert Maynard

Correct a signed to unsigned warning in vtkTIFFReader

parent 3530cb6e
Pipeline #19150 passed 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