aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BigInt.c4
-rw-r--r--BigInt.h2
2 files changed, 3 insertions, 3 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
diff --git a/BigInt.h b/BigInt.h
index 9eb52a4..939d1d1 100644
--- a/BigInt.h
+++ b/BigInt.h
@@ -30,7 +30,7 @@ Result B_lshift(BigInt *x, usize shift);
/* Get */
-usize B_bytes(const BigInt x);
+usize B_bits(const BigInt x);
usize B_bitwidth(const BigInt x);
char* B_tostr(MemoryManager *mm, const BigInt x);