Remove useless calls to bc_num_zero
diff --git a/src/num.c b/src/num.c
index 16de1c9..34cf8b8 100644
--- a/src/num.c
+++ b/src/num.c
@@ -822,7 +822,6 @@
assert(c == '.');
bc_num_init(&result, base->len);
- bc_num_zero(&result);
bc_num_one(&mult);
for (i += 1, digits = 0; i < len; ++i, ++digits) {
@@ -1022,9 +1021,10 @@
void bc_num_init(BcNum *n, size_t req) {
assert(n);
req = req >= BC_NUM_DEF_SIZE ? req : BC_NUM_DEF_SIZE;
- memset(n, 0, sizeof(BcNum));
n->num = bc_vm_malloc(req);
n->cap = req;
+ n->rdx = n->len = 0;
+ n->neg = false;
}
void bc_num_expand(BcNum *n, size_t req) {