mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
An ugly temporary fix to handling integers in the RPC parameters.
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
# include <cpptl/conststring.h>
|
# include <cpptl/conststring.h>
|
||||||
#endif
|
#endif
|
||||||
#include <cstddef> // size_t
|
#include <cstddef> // size_t
|
||||||
|
|
||||||
|
#include <boost/lexical_cast.hpp>
|
||||||
|
|
||||||
#ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
|
#ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
|
||||||
# include "json_batchallocator.h"
|
# include "json_batchallocator.h"
|
||||||
#endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
|
#endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
|
||||||
@@ -693,6 +696,7 @@ Value::asString() const
|
|||||||
case booleanValue:
|
case booleanValue:
|
||||||
return value_.bool_ ? "true" : "false";
|
return value_.bool_ ? "true" : "false";
|
||||||
case intValue:
|
case intValue:
|
||||||
|
return boost::lexical_cast<std::string>(value_.int_);
|
||||||
case uintValue:
|
case uintValue:
|
||||||
case realValue:
|
case realValue:
|
||||||
case arrayValue:
|
case arrayValue:
|
||||||
|
|||||||
Reference in New Issue
Block a user