Merge pull request #305 from isislovecruft/fix/unused-tmp2-warning

Fix a warning that a temporary value isn't used.
This commit is contained in:
isis agora lovecruft 2019-10-28 20:20:06 +00:00 committed by GitHub
commit 4d1dfbaf03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ pub(crate) fn mul(point: &EdwardsPoint, scalar: &Scalar) -> EdwardsPoint {
// We sum right-to-left. // We sum right-to-left.
// Unwrap first loop iteration to save computing 16*identity // Unwrap first loop iteration to save computing 16*identity
let mut tmp2 = ProjectivePoint::identity(); let mut tmp2;
let mut tmp3 = EdwardsPoint::identity(); let mut tmp3 = EdwardsPoint::identity();
let mut tmp1 = &tmp3 + &lookup_table.select(scalar_digits[63]); let mut tmp1 = &tmp3 + &lookup_table.select(scalar_digits[63]);
// Now tmp1 = s_63*P in P1xP1 coords // Now tmp1 = s_63*P in P1xP1 coords