Salome HOME
Fix assertion message during reading of pattern file on Win32 stations
authorabd <abd@opencascade.com>
Mon, 14 Aug 2006 09:14:41 +0000 (09:14 +0000)
committerabd <abd@opencascade.com>
Mon, 14 Aug 2006 09:14:41 +0000 (09:14 +0000)
src/SMESH_I/SMESH_Pattern_i.cxx

index 13ed3ac891d890c147c9a0742bb93a2253c0faa5..d3647ca09fd242fb0ee9d6bb38c26e641246a4c6 100644 (file)
@@ -109,7 +109,8 @@ CORBA::Boolean SMESH_Pattern_i::LoadFromFile(const char* theFileContents)
   // remove some gabage from the end
   TCollection_AsciiString patternDescription = (char*) theFileContents;
   int pos = patternDescription.Length();
-  while (! isdigit( patternDescription.Value( pos )))
+  char test = patternDescription.Value( pos );
+  while (! isdigit( (unsigned char)patternDescription.Value( pos )))
     pos--;
   if ( pos != patternDescription.Length() ) {
     patternDescription.Trunc( pos );