You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/06/29 23:09:50 UTC

cvs commit: xml-xalan/c/src/XPath XNumber.cpp

dbertoni    00/06/29 14:09:48

  Modified:    c/src/XPath XNumber.cpp
  Log:
  Fixed bug with boolean() function and NaN.
  
  Revision  Changes    Path
  1.4       +1 -1      xml-xalan/c/src/XPath/XNumber.cpp
  
  Index: XNumber.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XNumber.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XNumber.cpp	2000/05/03 21:21:15	1.3
  +++ XNumber.cpp	2000/06/29 21:09:46	1.4
  @@ -120,7 +120,7 @@
   bool
   XNumber::boolean() const
   {
  -	return m_value == 0.0 ? false : true;
  +	return DoubleSupport::isNaN(m_value) || DoubleSupport::equal(m_value, 0.0) ? false : true;
   }