From d25c97f7d572244a1525ef32014cff183bbf1f6e Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Jun 2012 20:32:42 -0700 Subject: [PATCH] STAmount::setValue(const STAmount &) --- src/Amount.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Amount.cpp b/src/Amount.cpp index c9c0dcfd60..b3cddd9809 100644 --- a/src/Amount.cpp +++ b/src/Amount.cpp @@ -251,6 +251,15 @@ STAmount::STAmount(const char* name, int64 value) : SerializedType(name), mOffse } } +void STAmount::setValue(const STAmount &a) +{ + mCurrency = a.mCurrency; + mValue = a.mValue; + mOffset = a.mOffset; + mIsNative = a.mIsNative; + mIsNegative = a.mIsNegative; +} + uint64 STAmount::toUInt64() const { // makes them sort easily if (mValue == 0) return 0x4000000000000000ull;