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...@apache.org on 2003/05/16 18:11:57 UTC

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

dbertoni    2003/05/16 09:11:56

  Modified:    c/src/XPath XObject.cpp
  Log:
  Added comment to clarify behavior.
  
  Revision  Changes    Path
  1.33      +4 -1      xml-xalan/c/src/XPath/XObject.cpp
  
  Index: XObject.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XObject.cpp,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- XObject.cpp	3 Jan 2003 08:03:14 -0000	1.32
  +++ XObject.cpp	16 May 2003 16:11:56 -0000	1.33
  @@ -682,7 +682,10 @@
   			const double			theRHS,
   			const CompareFunction&	theCompareFunction)
   {
  -	bool				theResult = false;
  +	// Note that if the node-set is empty, we always return false.  This is
  +	// because an empty node-set converted to a number is NaN and _any_
  +	// comparison with NaN is always false.
  +	bool	theResult = false;
   
   	const NodeRefListBase::size_type	len1 = theLHSNodeSet.getLength();
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org