mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Fix early overwrite of dst w/ exp_u64
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user