Skip to content

Commit

Permalink
fix coverity 1075397,1076095 (constructor init, int32/64), re #11328
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Mar 12, 2015
1 parent 1456d58 commit eb2a92b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadRawSpectrum0.cpp
Expand Up @@ -27,7 +27,9 @@ using namespace API;

/// Constructor
LoadRawSpectrum0::LoadRawSpectrum0()
: m_filename(), m_numberOfSpectra(0), m_specTimeRegimes(), m_prog(0.0) {}
: isisRaw(), m_filename(), m_numberOfSpectra(0), m_cache_options(),
m_specTimeRegimes(), m_prog(0.0), m_lengthIn(0), m_noTimeRegimes(0) {
}

LoadRawSpectrum0::~LoadRawSpectrum0() {}

Expand Down Expand Up @@ -119,7 +121,8 @@ void LoadRawSpectrum0::exec() {

int64_t wsIndex = 0;
// for each period read first spectrum
int64_t histToRead = period * (m_numberOfSpectra + 1);
int64_t histToRead = period *
(static_cast<int64_t>(m_numberOfSpectra) + 1);

progress(m_prog, "Reading raw file data...");
// isisRaw->readData(file, histToRead);
Expand Down

0 comments on commit eb2a92b

Please sign in to comment.