From: abd Date: Mon, 14 Aug 2006 09:14:41 +0000 (+0000) Subject: Fix assertion message during reading of pattern file on Win32 stations X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a3868cfc47d73259b41e96d53b4cbd5a1185bed;p=modules%2Fsmesh.git Fix assertion message during reading of pattern file on Win32 stations --- diff --git a/src/SMESH_I/SMESH_Pattern_i.cxx b/src/SMESH_I/SMESH_Pattern_i.cxx index 13ed3ac89..d3647ca09 100644 --- a/src/SMESH_I/SMESH_Pattern_i.cxx +++ b/src/SMESH_I/SMESH_Pattern_i.cxx @@ -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 );