From cadb7764b56c8e891cb8f397312c8f2368cd334d Mon Sep 17 00:00:00 2001
From: Ger van Diepen <diepen@astron.nl>
Date: Mon, 15 Feb 2016 12:30:10 +0000
Subject: [PATCH] Task #9101 Fixed incorrect loop conditions

---
 CEP/DP3/DPPP/test/tStationAdder.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CEP/DP3/DPPP/test/tStationAdder.cc b/CEP/DP3/DPPP/test/tStationAdder.cc
index 54ca01d482a..dfe6bbdb0b9 100644
--- a/CEP/DP3/DPPP/test/tStationAdder.cc
+++ b/CEP/DP3/DPPP/test/tStationAdder.cc
@@ -279,7 +279,7 @@ private:
     Cube<Complex> tmp=from.copy();
     Cube<Complex>::iterator tmpit=tmp.begin();
     Cube<Float>::const_iterator weightit=weights.begin();
-    for (; tmpit!=to.end() && weightit!=weights.end(); tmpit++, weightit++) {
+    for (; tmpit!=tmp.end() && weightit!=weights.end(); tmpit++, weightit++) {
       *tmpit *= *weightit;
     }
     to += tmp(IPosition(3,0,0,bl), IPosition(3,to.nrow()-1,to.ncolumn()-1,bl));
@@ -291,7 +291,7 @@ private:
     Cube<Complex> tmp=from.copy();
     Cube<Complex>::iterator tmpit=tmp.begin();
     Cube<Float>::const_iterator weightit=weights.begin();
-    for (; tmpit!=to.end() && weightit!=weights.end(); tmpit++, weightit++) {
+    for (; tmpit!=tmp.end() && weightit!=weights.end(); tmpit++, weightit++) {
       *tmpit *= *weightit;
     }
     to += conj(tmp(IPosition(3,0,0,bl), IPosition(3,to.nrow()-1,to.ncolumn()-1,bl)));
-- 
GitLab