diff options
| -rw-r--r-- | BigInt.c | 4 | ||||
| -rw-r--r-- | BigInt.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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); |
