We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9268b8 commit d0cc3f6Copy full SHA for d0cc3f6
tfhe/src/integer/bigint/static_unsigned.rs
@@ -418,7 +418,7 @@ impl<const N: usize> CastFrom<u128> for StaticUnsignedBigInt<N> {
418
419
impl<const N: usize> CastFrom<StaticUnsignedBigInt<N>> for u128 {
420
fn cast_from(input: StaticUnsignedBigInt<N>) -> Self {
421
- input.0[0] as Self | input.0.get(1).copied().unwrap_or(0) as Self
+ input.0[0] as Self | ((input.0.get(1).copied().unwrap_or(0) as Self) << 64)
422
}
423
424
0 commit comments