From 762c8d4e256a6aca63c753c7c23b979647c8a4f3 Mon Sep 17 00:00:00 2001
From: Max Kahnt <maxka@mi.fu-berlin.de>
Date: Mon, 25 Sep 2017 13:03:40 +0000
Subject: [PATCH] [Fix] forgot to change type name

---
 dune/matrix-vector/genericvectortools.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/matrix-vector/genericvectortools.hh b/dune/matrix-vector/genericvectortools.hh
index 50744db..8cafcb4 100644
--- a/dune/matrix-vector/genericvectortools.hh
+++ b/dune/matrix-vector/genericvectortools.hh
@@ -65,7 +65,7 @@ struct Helper<Scalar, typename std::enable_if_t<IsNumber<Scalar>::value>> {
 
   static void readBinary(std::istream& s, Scalar& v) {
     for(auto&& vi: v)
-      s.read(reinterpret_cast<char*>(&v), sizeof(Field));
+      s.read(reinterpret_cast<char*>(&v), sizeof(Scalar));
   }
 
   template <class BitVector>
-- 
GitLab