You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/03/01 19:03:48 UTC
svn commit: r382105 -
/xerces/c/branches/xerces-2.7/src/xercesc/util/XMLAbstractDoubleFloat.cpp
Author: cargilld
Date: Wed Mar 1 10:03:47 2006
New Revision: 382105
URL: http://svn.apache.org/viewcvs?rev=382105&view=rev
Log:
Fix check for finding invalid float and double characters.
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/util/XMLAbstractDoubleFloat.cpp
Modified: xerces/c/branches/xerces-2.7/src/xercesc/util/XMLAbstractDoubleFloat.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/util/XMLAbstractDoubleFloat.cpp?rev=382105&r1=382104&r2=382105&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/util/XMLAbstractDoubleFloat.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/util/XMLAbstractDoubleFloat.cpp Wed Mar 1 10:03:47 2006
@@ -113,13 +113,13 @@
// allows "infinity" and "+INF"
XMLCh curChar;
while (curChar = tmpStrValue[lenTempStrValue]) {
- if (!(curChar >= chDigit_0 ||
- curChar <= chDigit_9 ||
+ if (!((curChar >= chDigit_0 &&
+ curChar <= chDigit_9) ||
curChar == chPeriod ||
curChar == chDash ||
curChar == chPlus ||
curChar == chLatin_E ||
- curChar == chLatin_e)) {
+ curChar == chLatin_e)) {
ThrowXMLwithMemMgr(
NumberFormatException,
XMLExcepts::XMLNUM_Inv_chars,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org