Skip to content

Commit

Permalink
refs #7351 Fixing ExtractMaskToTable which fails test in debug mode
Browse files Browse the repository at this point in the history
this is nothing to do with SofQ but prevents me from running Algorithms tests in debug mode.
  • Loading branch information
abuts committed Jul 15, 2013
1 parent b3c5192 commit 5c93875
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/Algorithms/src/ExtractMaskToTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ namespace Algorithms
{
detid_t tmpid = minuend[i];
fiter = lower_bound(firstsubiter, subtrahend.end(), tmpid);
bool exist = *fiter == tmpid;
bool exist(false);
if (fiter != subtrahend.end())
exist = *fiter == tmpid;
if (!exist)
{
diff.push_back(tmpid);
Expand Down

0 comments on commit 5c93875

Please sign in to comment.