diff options
| author | gingerBill <bill@gingerbill.org> | 2025-01-30 10:37:21 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-01-30 10:37:21 +0000 |
| commit | 5efa3510cfeebf498f78b35a213bab0c1014a85e (patch) | |
| tree | 8d0040882adf0bf2a6c5a5a8a91d99906b5664da /src/big_int.cpp | |
| parent | 998d6525b7e1cc046f9cf58577fa71ee88b7c9a0 (diff) | |
| parent | 2656ecd4e17d448f1d972270bde87f75bc096d0d (diff) | |
Merge branch 'master' into bill/sdl3
Diffstat (limited to 'src/big_int.cpp')
| -rw-r--r-- | src/big_int.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/big_int.cpp b/src/big_int.cpp index 8e476f090..0b0a9a400 100644 --- a/src/big_int.cpp +++ b/src/big_int.cpp @@ -251,7 +251,10 @@ gb_internal void big_int_from_string(BigInt *dst, String const &s, bool *success exp *= 10; exp += v; } - big_int_exp_u64(dst, &b, exp, success); + BigInt tmp = {}; + mp_init(&tmp); + big_int_exp_u64(&tmp, &b, exp, success); + big_int_mul_eq(dst, &tmp); } if (is_negative) { |