Skip to content

Commit

Permalink
Refs #8385 Cast variable to correct type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Nov 7, 2013
1 parent 49edbc5 commit 0c841fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadLLB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ int LoadLLB::getDetectorElasticPeakPosition(const NeXus::NXFloat &data) {
std::vector<int> cumulatedSumOfSpectras(m_numberOfChannels, 0);
for (size_t i = 0; i < m_numberOfTubes; i++) {
float* data_p = &data(static_cast<int>(i), 0);
std::vector<int> thisSpectrum(data_p, data_p + m_numberOfChannels);
int data_p_int = static_cast<int>(*data_p);
std::vector<int> thisSpectrum(data_p_int, data_p_int + static_cast<int>(m_numberOfChannels));
// sum spectras
std::transform(thisSpectrum.begin(), thisSpectrum.end(),
cumulatedSumOfSpectras.begin(), cumulatedSumOfSpectras.begin(),
Expand Down

0 comments on commit 0c841fb

Please sign in to comment.