more tests and a fix

This commit is contained in:
Hans Dembinski
2017-03-28 23:51:48 +02:00
parent 3b31bf51df
commit 4ce3973c77
2 changed files with 17 additions and 14 deletions

View File

@@ -241,7 +241,7 @@ private:
(*this)(get<array<uint8_t>>(buffer));
}
void operator()(array<mp_int> &b) const { b[idx] = value; }
void operator()(array<mp_int> &b) const { b[idx] = static_cast<mp_int>(value); }
void operator()(array<weight> &b) const { b[idx] = value; }
};