Skip to content
Snippets Groups Projects
Commit e6d1e71e authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: Avoiding debug assertion on with VS8 when attempting to read a binary...

BUG: Avoiding debug assertion on with VS8 when attempting to read a binary file as ASCII. That happens when testing if the file is readable or not.
parent 8c65281b
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@
#include <assert.h>
#include <ctype.h> /* isspace */
vtkCxxRevisionMacro(vtkGenericEnSightReader, "1.87");
vtkCxxRevisionMacro(vtkGenericEnSightReader, "1.88");
vtkStandardNewMacro(vtkGenericEnSightReader);
vtkCxxSetObjectMacro(vtkGenericEnSightReader,TimeSets,
......@@ -664,7 +664,7 @@ int vtkGenericEnSightReader::ReadNextDataLine(char result[256])
{
size_t len = strlen( result );
unsigned int i = 0;
while( i < len && isspace( result[i] ) )
while( i < len && (static_cast<unsigned int>(result[i]) <= 255) && isspace(result[i]) )
{
++i;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment