STAmount::setValue(const STAmount &)

This commit is contained in:
JoelKatz
2012-06-01 20:32:42 -07:00
parent 1dfa9d0615
commit d25c97f7d5

View File

@@ -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;