aboutsummaryrefslogtreecommitdiff
path: root/BigInt.c
diff options
context:
space:
mode:
Diffstat (limited to 'BigInt.c')
-rw-r--r--BigInt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/BigInt.c b/BigInt.c
index ec4f4ee..3b05e7f 100644
--- a/BigInt.c
+++ b/BigInt.c
@@ -452,10 +452,10 @@ B_lshift(BigInt *intx, usize shift) {
/* Get */
usize
-B_bytes(const BigInt x) {
+B_bits(const BigInt x) {
if (NULL == x)
return 0;
- return B_metadata(x)->words * sizeof(UWord);
+ return B_metadata(x)->words * UWORD_BIT;
}
usize