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 2002/05/06 07:21:23 UTC

cvs commit: xml-xalan/c/src/XalanEXSLT XalanEXSLTString.cpp

dbertoni    02/05/05 22:21:23

  Modified:    c/src/XalanEXSLT XalanEXSLTString.cpp
  Log:
  Round argument.
  
  Revision  Changes    Path
  1.3       +3 -3      xml-xalan/c/src/XalanEXSLT/XalanEXSLTString.cpp
  
  Index: XalanEXSLTString.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanEXSLT/XalanEXSLTString.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XalanEXSLTString.cpp	30 Apr 2002 04:41:33 -0000	1.2
  +++ XalanEXSLTString.cpp	6 May 2002 05:21:23 -0000	1.3
  @@ -59,7 +59,7 @@
   
   
   
  -//#include <PlatformSupport/DoubleSupport.hpp>
  +#include <PlatformSupport/DoubleSupport.hpp>
   #include <PlatformSupport/XalanUnicode.hpp>
   
   
  @@ -263,7 +263,7 @@
   
   	assert(args[0].null() == false && (theSize == 1 || args[1].null() == false));
   
  -	const double						theLength = args[0]->num();
  +	const double						theLength = DoubleSupport::round(args[0]->num());
   	const XalanDOMString&				thePaddingString = theSize == 2 ? args[1]->str() : m_space;
   	const XalanDOMString::size_type		thePaddingStringLength = thePaddingString.length();
   
  @@ -283,7 +283,7 @@
   		}
   		else
   		{
  -			double	theRemainingLength = theLength;
  +			XalanDOMString::size_type	theRemainingLength = XalanDOMString::size_type(theLength);
   
   			for(;;)
   			{
  
  
  

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