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 2001/02/01 19:32:34 UTC
cvs commit: xml-xalan/c/src/XSLT ElemNumber.cpp
dbertoni 01/02/01 10:32:34
Modified: c/src/XSLT ElemNumber.cpp
Log:
Fixed bug where number value was truncated, rather than rounded.
Revision Changes Path
1.37 +2 -1 xml-xalan/c/src/XSLT/ElemNumber.cpp
Index: ElemNumber.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemNumber.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- ElemNumber.cpp 2001/01/26 22:57:24 1.36
+++ ElemNumber.cpp 2001/02/01 18:32:32 1.37
@@ -260,6 +260,7 @@
contextCopy = DOMServices::getParentOfNode(*contextCopy);
}
+
return contextCopy;
}
@@ -392,7 +393,7 @@
}
else
{
- numberList.push_back(int(theValue));
+ numberList.push_back(int(DoubleSupport::round(theValue)));
}
}
else