Skip to content

Commit 87e09d1

Browse files
committed
mcl: Fix build
1 parent 228f05e commit 87e09d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/mcl/module.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,13 @@ std::optional<component::G1> mcl::OpBLS_G1_Mul(operation::BLS_G1_Mul& op) {
609609
using namespace Namespace;
610610

611611
Namespace::Fp a_x, a_y;
612-
Namespace::Fp b;
612+
Namespace::Fr b;
613613

614614
try {
615615
a_x = Fp(op.a.first.ToTrimmedString(), 10);
616616
a_y = Fp(op.a.second.ToTrimmedString(), 10);
617617

618-
b = Fp(op.b.ToTrimmedString(), 10);
618+
b = Fr(op.b.ToTrimmedString(), 10);
619619
} catch ( cybozu::Exception ) {
620620
/* May throw exception if string represents value larger than curve order */
621621
return std::nullopt;
@@ -730,15 +730,15 @@ std::optional<component::G2> mcl::OpBLS_G2_Mul(operation::BLS_G2_Mul& op) {
730730
using namespace Namespace;
731731

732732
Namespace::Fp a_v, a_w, a_x, a_y;
733-
Namespace::Fp b;
733+
Namespace::Fr b;
734734

735735
try {
736736
a_v = Fp(op.a.first.first.ToTrimmedString(), 10);
737737
a_w = Fp(op.a.first.second.ToTrimmedString(), 10);
738738
a_x = Fp(op.a.second.first.ToTrimmedString(), 10);
739739
a_y = Fp(op.a.second.second.ToTrimmedString(), 10);
740740

741-
b = Fp(op.b.ToTrimmedString(), 10);
741+
b = Fr(op.b.ToTrimmedString(), 10);
742742
} catch ( cybozu::Exception ) {
743743
/* May throw exception if string represents value larger than curve order */
744744
return std::nullopt;

0 commit comments

Comments
 (0)