Skip to content

Commit b47c9bb

Browse files
committed
Fix bug in processing of command-line option.
1 parent 70fb30c commit b47c9bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Processor/OfflineMachine.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ template<class W>
4343
template<class T, class U>
4444
int OfflineMachine<W>::run()
4545
{
46-
T::clear::init_default(this->online_opts.prime_length());
46+
if (this->online_opts.prime)
47+
T::clear::init_field(this->online_opts.prime);
48+
else
49+
T::clear::init_default(this->online_opts.prime_length());
4750
Machine<T, U>::init_binary_domains(this->online_opts.security_parameter,
4851
this->get_lg2());
4952
auto binary_mac_key = read_generate_write_mac_key<

0 commit comments

Comments
 (0)