From 5fdf6970c9393b6256399d424f1c201ba2f65ac9 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Sat, 16 Feb 2019 18:27:35 +0100 Subject: [PATCH] ... --- src/include/multi_array.cc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/multi_array.cc.h b/src/include/multi_array.cc.h index e4c5d92..f6fcbdf 100644 --- a/src/include/multi_array.cc.h +++ b/src/include/multi_array.cc.h @@ -219,7 +219,7 @@ namespace MultiArrayTools } else { assert( PackNum::checkIfSameInstance( MAB::mRange->space(), in.mRange->space() ) ); - for(size_t i = 0; i != size(); ++i){ + for(size_t i = 0; i != mCont.size(); ++i){ mCont[i] += in.mCont[i]; } //std::transform(mCont.begin(), mCont.end(), in.mCont.begin(), mCont.begin(), std::plus()); @@ -235,7 +235,7 @@ namespace MultiArrayTools } else { assert( PackNum::checkIfSameInstance( MAB::mRange->space(), in.mRange->space() ) ); - for(size_t i = 0; i != size(); ++i){ + for(size_t i = 0; i != mCont.size(); ++i){ mCont[i] -= in.mCont[i]; } //std::transform(mCont.begin(), mCont.end(), in.mCont.begin(), mCont.begin(), std::minus());