Fix a bug that busybox fixed

This was the reporting of number length when the value was zero.
This commit is contained in:
Gavin Howard 2021-02-26 14:06:44 -07:00
parent d0c044a11e
commit ae186e65ad
Signed by: gavin
GPG Key ID: C08038BDF280D33E
1 changed files with 1 additions and 1 deletions

View File

@ -2138,7 +2138,7 @@ size_t bc_num_len(const BcNum *restrict n) {
size_t len = n->len;
if (BC_NUM_ZERO(n)) return 0;
if (BC_NUM_ZERO(n)) return n->scale ? n->scale : 1;
if (BC_NUM_RDX_VAL(n) == len) {