From b1d981e9165b779d2afe2519a452dcce87b6e70a Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Mon, 14 Aug 2017 17:16:21 +0100 Subject: [PATCH] Replace inline value with const. --- src/bls12_381/fq.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bls12_381/fq.rs b/src/bls12_381/fq.rs index 6ebd8d49a..51d18b7e8 100644 --- a/src/bls12_381/fq.rs +++ b/src/bls12_381/fq.rs @@ -822,8 +822,7 @@ impl SqrtField for Fq { a0.square(); a0.mul_assign(self); - // if a0 == -1 - if a0.0 == FqRepr([0x43f5fffffffcaaae, 0x32b7fff2ed47fffd, 0x7e83a49a2e99d69, 0xeca8f3318332bb7a, 0xef148d1ea0f4c069, 0x40ab3263eff0206]) + if a0 == NEGATIVE_ONE { None }