mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibCrypto: Convert BigFraction stringification to String
This commit is contained in:
parent
5cfd50224c
commit
e6c96ce57e
Notes:
github-actions[bot]
2024-12-04 13:02:44 +00:00
Author: https://github.com/trflynn89
Commit: e6c96ce57e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2731
Reviewed-by: https://github.com/shannonbooth
3 changed files with 4 additions and 4 deletions
|
@ -185,7 +185,7 @@ void BigFraction::reduce()
|
|||
m_denominator = denominator_divide.quotient;
|
||||
}
|
||||
|
||||
ByteString BigFraction::to_byte_string(unsigned rounding_threshold) const
|
||||
String BigFraction::to_string(unsigned rounding_threshold) const
|
||||
{
|
||||
StringBuilder builder;
|
||||
if (m_numerator.is_negative() && m_numerator != "0"_bigint)
|
||||
|
@ -240,7 +240,7 @@ ByteString BigFraction::to_byte_string(unsigned rounding_threshold) const
|
|||
builder.append(fractional_value);
|
||||
}
|
||||
|
||||
return builder.to_byte_string();
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
|
||||
BigFraction BigFraction::sqrt() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue