Commit 4b37110f authored by maxka's avatar maxka
Browse files

Fix read binary for scalars. Props to Patrick Jaap for pointing it out.

parent a389d61b
......@@ -75,8 +75,7 @@ struct ScalarSwitch<Scalar, EnableNumber<Scalar>> {
}
static void readBinary(std::istream& s, Scalar& v) {
for(auto&& vi: v)
s.read(reinterpret_cast<char*>(&v), sizeof(Scalar));
s.read(reinterpret_cast<char*>(&v), sizeof(Scalar));
}
template <class BitVector>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment