commit | af556c3a4cd1b4c37c4506333d2132b8d5685096 | [log] [tgz] |
---|---|---|
author | Gavin Howard <yzena.tech@gmail.com> | Sat May 18 20:14:44 2019 -0600 |
committer | Gavin Howard <yzena.tech@gmail.com> | Sat May 18 20:14:44 2019 -0600 |
tree | 31288e013ff0a9732cb84d04d2d8c7672727f961 | |
parent | d0d3197ba623b847166152d16cab4a093ba0e65c [diff] [blame] |
Add an assert
diff --git a/src/num.c b/src/num.c index e0b841f..3b61b4b 100644 --- a/src/num.c +++ b/src/num.c
@@ -1740,6 +1740,7 @@ n->num[i + 1] = 0; } + assert(pow < BC_BASE_POW); n->num[i + 1] += n->num[i] / ((BcDig) pow); n->num[i] %= (BcDig) pow; }