big: Add another way to estimate radix size.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:51 +02:00
parent 9646d1f2b8
commit 0a431eef19
3 changed files with 65 additions and 12 deletions
-1
View File
@@ -37,7 +37,6 @@ int_set_from_integer :: proc(dest: ^Int, src: $T, minimize := false, allocator :
if err = clear_if_uninitialized(dest); err != .None {
return err;
}
dest.used = 0;
dest.sign = .Zero_or_Positive if src >= 0 else .Negative;
src = abs(src);