Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdd25d8
)
Fix assertion message during reading of pattern file on Win32 stations
author
abd
<abd@opencascade.com>
Mon, 14 Aug 2006 09:14:41 +0000
(09:14 +0000)
committer
abd
<abd@opencascade.com>
Mon, 14 Aug 2006 09:14:41 +0000
(09:14 +0000)
src/SMESH_I/SMESH_Pattern_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Pattern_i.cxx
b/src/SMESH_I/SMESH_Pattern_i.cxx
index 13ed3ac891d890c147c9a0742bb93a2253c0faa5..d3647ca09fd242fb0ee9d6bb38c26e641246a4c6 100644
(file)
--- 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 );