DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12849>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12849 comparison is always false warning Summary: comparison is always false warning Product: Xerces-C++ Version: 2.1.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Build AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This is in the cvs tree. GeneralAttributeCheck.cpp: In method `void GeneralAttributeCheck::checkAttributes (const DOMElement *, short unsigned int, TraverseSchema *, bool)': GeneralAttributeCheck.cpp:321: warning: comparison is always false due to limited range of data type The comparision is question is elemContext<0 where elemContext is an unsigned short. patch: Index: GeneralAttributeCheck.cpp =================================================================== RCS file: /home/cvspublic/xml-xerces/c/src/xercesc/validators/schema/GeneralAttributeCheck.cpp,v retrieving revision 1.5 diff -u -r1.5 GeneralAttributeCheck.cpp --- GeneralAttributeCheck.cpp 27 May 2002 19:54:33 -0000 1.5 +++ GeneralAttributeCheck.cpp 20 Sep 2002 09:47:38 -0000 @@ -318,7 +318,7 @@ TraverseSchema* const schema, const bool isTopLevel) { - if (elem == 0 || !fAttMap || elemContext<0 || elemContext>=E_Count) { + if (elem == 0 || !fAttMap || elemContext>=E_Count) { return; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
