diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-29 17:51:52 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-29 16:55:54 +0100 |
commit | 005d75656efd5e1934c4ee88887cff99cc811239 (patch) | |
tree | 7436022c78017d7d30238c06a5f2e3589871b7a0 /Userland/Libraries/LibJS/Bytecode/Op.cpp | |
parent | a76813172086995968a6bca9984e6ec508ae7bd1 (diff) | |
download | serenity-005d75656efd5e1934c4ee88887cff99cc811239.zip |
LibCrypto: Replace from_base{2,8,10,16}() & to_base10 with from_base(N)
This allows us to support parsing and serializing BigIntegers to and
from any base N (such that 2 <= N <= 36).
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode/Op.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 6429e4494e..521d523c45 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -469,7 +469,7 @@ String Store::to_string_impl(Bytecode::Executable const&) const String NewBigInt::to_string_impl(Bytecode::Executable const&) const { - return String::formatted("NewBigInt \"{}\"", m_bigint.to_base10()); + return String::formatted("NewBigInt \"{}\"", m_bigint.to_base(10)); } String NewArray::to_string_impl(Bytecode::Executable const&) const |