diff options
Diffstat (limited to 'vendor/crypto-bigint/src/limb/sub.rs')
-rw-r--r-- | vendor/crypto-bigint/src/limb/sub.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/crypto-bigint/src/limb/sub.rs b/vendor/crypto-bigint/src/limb/sub.rs index 1560a1b64..0fc7a4a68 100644 --- a/vendor/crypto-bigint/src/limb/sub.rs +++ b/vendor/crypto-bigint/src/limb/sub.rs @@ -10,9 +10,9 @@ impl Limb { pub const fn sbb(self, rhs: Limb, borrow: Limb) -> (Limb, Limb) { let a = self.0 as WideWord; let b = rhs.0 as WideWord; - let borrow = (borrow.0 >> (Self::BIT_SIZE - 1)) as WideWord; + let borrow = (borrow.0 >> (Self::BITS - 1)) as WideWord; let ret = a.wrapping_sub(b + borrow); - (Limb(ret as Word), Limb((ret >> Self::BIT_SIZE) as Word)) + (Limb(ret as Word), Limb((ret >> Self::BITS) as Word)) } /// Perform saturating subtraction. |