mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibCrypto+LibJS: Remove {Signed,Unsigned}BigInteger to_base_deprecated
Use `to_base` instead.
This commit is contained in:
parent
ac16008d09
commit
a019efb24b
Notes:
github-actions[bot]
2025-04-28 10:07:28 +00:00
Author: https://github.com/devgianlu
Commit: a019efb24b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4482
Reviewed-by: https://github.com/gmta ✅
8 changed files with 4 additions and 16 deletions
|
@ -258,7 +258,7 @@ String BigFraction::to_string(unsigned rounding_threshold) const
|
|||
auto const rounded_fraction = rounded(rounding_threshold);
|
||||
|
||||
// We take the unsigned value as we already manage the '-'
|
||||
auto const full_value = rounded_fraction.m_numerator.unsigned_value().to_base_deprecated(10);
|
||||
auto const full_value = MUST(rounded_fraction.m_numerator.unsigned_value().to_base(10)).to_byte_string();
|
||||
int split = full_value.length() - (number_of_digits(rounded_fraction.m_denominator) - 1);
|
||||
|
||||
if (split < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue