mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-23 22:03:33 -06:00
*XmlRpc: fix of 'double'
git-svn-id: svn://ultimatepp.org/upp/trunk@2633 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
993b0bbcce
commit
d1ca52f22f
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue