Fix assertion message during reading of pattern file on Win32 stations

This commit is contained in:
abd 2006-08-14 09:14:41 +00:00
parent bdd25d855c
commit 7a3868cfc4

View 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 );