1. 找到Processor文件夹下的FixInput.cpp,打开之后将第二个函数删掉,用下面的代码替换。
template<>
void FixInput_<bigint>::read(std::istream& in, const int* params)
{
if (*params == 0)
{
bigint x;
in.unsetf(ios::basefield);
in >> x;
items[0] = x;
}
else
{
mpf_class x;
items[0] = x * exp2(*params);
}
}
2. 回到根目录,执行
make yao
3. 编译成功后,打开GC文件夹,找到ShareSecret.hpp。第160行替换为
res.my_input(input, bigint(whole_input >> (i * dl)).get_ui(),
4. make yao 结束
这是一个bug,博文发布时最新版是2.4版本。这之前存在这个bug,之后的版本作者应该就改过来了。