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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]