mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Missed one special cast.
This commit is contained in:
@@ -58,6 +58,7 @@ STAmount* STAmount::construct(SerializerIterator& sit, const char *name)
|
|||||||
|
|
||||||
std::string STAmount::getText() const
|
std::string STAmount::getText() const
|
||||||
{
|
{
|
||||||
|
if(value==0) return "0";
|
||||||
if( (offset<-25) || (offset>-5) )
|
if( (offset<-25) || (offset>-5) )
|
||||||
return boost::lexical_cast<std::string>(value) + "e" + boost::lexical_cast<std::string>(offset);
|
return boost::lexical_cast<std::string>(value) + "e" + boost::lexical_cast<std::string>(offset);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user