From db2846547f927234996ce2e3fc1ec0c6d5f9bcc8 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 10 Apr 2012 16:47:17 -0700 Subject: [PATCH] Missed one special cast. --- src/Amount.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Amount.cpp b/src/Amount.cpp index 74ea62eb6c..699a0a7078 100644 --- a/src/Amount.cpp +++ b/src/Amount.cpp @@ -58,6 +58,7 @@ STAmount* STAmount::construct(SerializerIterator& sit, const char *name) std::string STAmount::getText() const { + if(value==0) return "0"; if( (offset<-25) || (offset>-5) ) return boost::lexical_cast(value) + "e" + boost::lexical_cast(offset);