big: ZII.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:50 +02:00
parent 4eadd0867d
commit 687c211a58
3 changed files with 25 additions and 30 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ package big
import "core:intrinsics"
int_is_initialized :: proc(a: ^Int) -> bool {
return a != rawptr(uintptr(0));
return a != rawptr(uintptr(0)) && a.allocated >= _MIN_DIGIT_COUNT;
}
int_is_zero :: proc(a: ^Int) -> bool {