aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-03-05 10:30:11 +0000
committerStefan Eßer <se@FreeBSD.org>2021-03-05 10:30:11 +0000
commit1fa9712ce0ef8cecd4888a67f4a4179c9e19e294 (patch)
tree118a4ebc08a4ede3ad3c91917fb3b50c19d1b379 /src
parentf131090388ae3272660242339b6c9e010309d811 (diff)
downloadsrc-1fa9712ce0ef8cecd4888a67f4a4179c9e19e294.tar.gz
src-1fa9712ce0ef8cecd4888a67f4a4179c9e19e294.zip
bc: Vendor import new version 3.3.3bc/3.3.3
Diffstat (limited to 'src')
-rw-r--r--src/num.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/num.c b/src/num.c
index 158e06a68875..6131034ac535 100644
--- a/src/num.c
+++ b/src/num.c
@@ -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) {