X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Pattern_i.cxx;fp=src%2FSMESH_I%2FSMESH_Pattern_i.cxx;h=13ed3ac891d890c147c9a0742bb93a2253c0faa5;hb=e36717feb00b623f5bc7ffbbc47d28ea0b95f842;hp=d3647ca09fd242fb0ee9d6bb38c26e641246a4c6;hpb=961309c8a41786c455e6415ce543ca692f2016c8;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_Pattern_i.cxx b/src/SMESH_I/SMESH_Pattern_i.cxx index d3647ca09..13ed3ac89 100644 --- a/src/SMESH_I/SMESH_Pattern_i.cxx +++ b/src/SMESH_I/SMESH_Pattern_i.cxx @@ -109,8 +109,7 @@ CORBA::Boolean SMESH_Pattern_i::LoadFromFile(const char* theFileContents) // remove some gabage from the end TCollection_AsciiString patternDescription = (char*) theFileContents; int pos = patternDescription.Length(); - char test = patternDescription.Value( pos ); - while (! isdigit( (unsigned char)patternDescription.Value( pos ))) + while (! isdigit( patternDescription.Value( pos ))) pos--; if ( pos != patternDescription.Length() ) { patternDescription.Trunc( pos );