Skip to content
Snippets Groups Projects
Commit 6ab82eac authored by scott snyder's avatar scott snyder
Browse files

PileUpComps: Fix compilation warning.

Compilation warning: signed/unsigned comparison.
parent b9b0b789
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ StatusCode ArrayBM::initialize()
m_signalPattern = new double[m_ipLength];
}
// Modification for empty bunches option
if (m_emptyBunches<0 || std::abs(m_emptyBunches)>m_ipLength){
if (m_emptyBunches<0 || std::abs(m_emptyBunches)>static_cast<int>(m_ipLength)){
// Easy case: Just flip all the bunches
for (size_t i=0;i<m_ipLength;++i){
if (rProp[i]>0.) m_signalPattern[i]=0.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment