mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Add integer enforcement when converting to XRP/MPTAmount to Number
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
||||
|
||||
operator Number() const noexcept
|
||||
{
|
||||
return value();
|
||||
return {value(), Number::strong};
|
||||
}
|
||||
|
||||
/** Return the sign of the amount */
|
||||
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
|
||||
operator Number() const noexcept
|
||||
{
|
||||
return drops();
|
||||
return {drops(), Number::weak};
|
||||
}
|
||||
|
||||
/** Return the sign of the amount */
|
||||
|
||||
Reference in New Issue
Block a user