*XmlRpc: fix of 'double'

git-svn-id: svn://ultimatepp.org/upp/trunk@2633 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-08-22 06:50:47 +00:00
parent 993b0bbcce
commit d1ca52f22f
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ void Vector<T>::InsertN(int q, int count) {
template <class T>
void Vector<T>::Insert(int q, const T& x, int count) {
if(!count) return;
ASSERT(&x < vector || &x > vector + items);
ASSERT(!(&x >= vector && &x < vector + items));
RawInsert(q, count);
DeepCopyConstructFill(vector + q, vector + q + count, x);
}

View file

@ -107,7 +107,7 @@ String FormatXmlRpcValue(const Value& v)
r = XmlTag("boolean")(AsString((int)(bool)v));
else
if(IsNumber(v))
r = XmlTag("double")(Format("%d", (double)v));
r = XmlTag("double")(Format("%g", (double)v));
else
if(IsDateTime(v)) {
Time t = v;