]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix another such place.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 23:00:25 +0000 (23:00 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 23:00:25 +0000 (23:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@23891 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/index_set.cc

index f00657ed85237e376b4540be3c8fb69f77c04cf0..3693c121a91d45c3f4a7756494ba380affbde7a0 100644 (file)
@@ -266,8 +266,7 @@ IndexSet::block_read(std::istream & in)
   ranges.resize(n_ranges, Range(0,0));
   if (n_ranges)
     in.read(reinterpret_cast<char*>(&*ranges.begin()),
-           reinterpret_cast<char*>(&*ranges.end())
-           - reinterpret_cast<char*>(&*ranges.begin()));
+           ranges.size() * sizeof(Range));
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.