mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
STAmount::setValue(const STAmount &)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user