amassari 2004/09/28 02:35:05 Modified: c/src/xercesc/util XMLString.cpp Log: Fixed comparison between signed and unsigned Revision Changes Path 1.37 +2 -2 xml-xerces/c/src/xercesc/util/XMLString.cpp Index: XMLString.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLString.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- XMLString.cpp 8 Sep 2004 13:56:24 -0000 1.36 +++ XMLString.cpp 28 Sep 2004 09:35:05 -0000 1.37 @@ -337,7 +337,7 @@ const unsigned int len = strlen(toSearch); // Make sure the start index is within the XMLString bounds - if ((int)fromIndex > len-1) + if ((int)fromIndex > ((int)len)-1) ThrowXMLwithMemMgr(ArrayIndexOutOfBoundsException, XMLExcepts::Str_StartIndexPastEnd, manager); for (unsigned int i = fromIndex; i < len; i++)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]