Skip to content

Commit

Permalink
refs #9509. Fix GCC warnings and errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed May 27, 2014
1 parent 74fb79e commit a19e2d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/Crystal/src/IntegratePeaksHybrid.cpp
Expand Up @@ -44,6 +44,7 @@
#include <boost/make_shared.hpp>
#include <boost/format.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/math/special_functions/fpclassify.hpp>

using namespace Mantid::API;
using namespace Mantid::Kernel;
Expand Down Expand Up @@ -222,7 +223,7 @@ namespace Mantid
{
cumulative += iterator->getSignal();
} while (iterator->next());
const double threshold = cumulative / localImage->getNPoints();
const double threshold = cumulative / signal_t(localImage->getNPoints());

HardThresholdBackground backgroundStrategy(threshold, normalization);
// CCL. Multi-processor version.
Expand Down

0 comments on commit a19e2d3

Please sign in to comment.