Skip to content

Commit

Permalink
bug fix: ProcForeach check condition needed a 'not'
Browse files Browse the repository at this point in the history
When initializing the value of 'size' for the LoopCtx we need to
check that the 'size' has not yet been set. The bug only changed
the value of 'size' if it had already been set.
  • Loading branch information
Dr15Jones committed Jan 24, 2015
1 parent 32147f6 commit f5ce02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/MVAComputer/src/ProcForeach.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void ProcForeach::eval(ValueIterator iter, unsigned int n) const
auto& loopSize = iter.loopCtx().size();
while(iter) {
unsigned int size = iter.size();
if (loopSize)
if (!loopSize)
loopSize = size;

double value = iter[offset];
Expand Down

0 comments on commit f5ce02f

Please sign in to comment.