From 7a3868cfc47d73259b41e96d53b4cbd5a1185bed Mon Sep 17 00:00:00 2001 From: abd Date: Mon, 14 Aug 2006 09:14:41 +0000 Subject: [PATCH] Fix assertion message during reading of pattern file on Win32 stations --- src/SMESH_I/SMESH_Pattern_i.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.30.2