mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 23:00:55 +00:00
Fix negation of int64_t (#6296)
This commit is contained in:
@@ -93,7 +93,7 @@ public:
|
||||
makeNumber(int64_t mantissa, int32_t exponent)
|
||||
{
|
||||
if (mantissa < 0)
|
||||
return Number(true, -mantissa, exponent, Number::normalized());
|
||||
return Number(true, -static_cast<uint64_t>(mantissa), exponent, Number::normalized());
|
||||
return Number(false, mantissa, exponent, Number::normalized());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user