Fix a few various things
diff --git a/src/num.c b/src/num.c
index d6ece30..d154416 100644
--- a/src/num.c
+++ b/src/num.c
@@ -2443,6 +2443,7 @@
bc_num_printDecimal(n);
printf("\n");
if (emptyline) printf("\n");
+ vm->nchars = 0;
}
void bc_num_printDigs(const BcNum *n, const char *name, bool emptyline) {
@@ -2457,6 +2458,7 @@
printf("\n");
if (emptyline) printf("\n");
+ vm->nchars = 0;
}
void bc_num_dump(const char *varname, const BcNum *n) {
@@ -2489,5 +2491,6 @@
fprintf(stderr, "(%zu | %zu.%zu / %zu) %p\n",
n->scale, n->len, n->rdx, n->cap, (void*) n->num);
+ vm->nchars = 0;
}
#endif // BC_DEBUG_CODE