File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
crates/math/src/elliptic_curve/short_weierstrass Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -212,17 +212,17 @@ impl<E: IsShortWeierstrass> ShortWeierstrassProjectivePoint<E> {
212
212
let mut result = Self :: neutral_element ( ) ;
213
213
let mut base = self . clone ( ) ;
214
214
215
- while exponent. limbs [ 3 ] ! = 0
216
- && exponent. limbs [ 2 ] ! = 0
217
- && exponent. limbs [ 1 ] ! = 0
218
- && exponent. limbs [ 0 ] != 0
215
+ while ! ( exponent. limbs [ 3 ] = = 0
216
+ && exponent. limbs [ 2 ] = = 0
217
+ && exponent. limbs [ 1 ] = = 0
218
+ && exponent. limbs [ 0 ] == 0 )
219
219
{
220
220
// check lsb
221
221
if exponent. limbs [ 3 ] & 1 == 1 {
222
222
result = Self :: operate_with_unchecked ( & result, & base) ;
223
223
}
224
224
exponent >>= 1 ;
225
- base = self . double ( ) ;
225
+ base = base . double ( ) ;
226
226
}
227
227
result
228
228
}
You can’t perform that action at this time.
0 commit comments