Skip to content

Commit

Permalink
Merge pull request #4285 from apfeiffer1/fixConversionError
Browse files Browse the repository at this point in the history
explicitly convert Time_t to RunNumber to avoid compiler warning
  • Loading branch information
davidlange6 committed Jun 19, 2014
2 parents cc1c4a8 + 40a0f2d commit 78fcd18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Alignment/MillePedeAlignmentAlgorithm/src/PedeLabelerBase.cc
Expand Up @@ -24,8 +24,8 @@ const unsigned int PedeLabelerBase::theMinLabel = 1; // must be > 0

PedeLabelerBase::PedeLabelerBase(const TopLevelAlignables &alignables,
const edm::ParameterSet &config)
:theOpenRunRange(std::make_pair<RunNumber,RunNumber>(cond::timeTypeSpecs[cond::runnumber].beginValue,
cond::timeTypeSpecs[cond::runnumber].endValue))
:theOpenRunRange(std::make_pair<RunNumber,RunNumber>( RunNumber( cond::timeTypeSpecs[cond::runnumber].beginValue) , // since we know we have a runnumber here, we can
RunNumber( cond::timeTypeSpecs[cond::runnumber].endValue ) )) // simply convert the Time_t to make the compiler happy
{

}
Expand Down

0 comments on commit 78fcd18

Please sign in to comment.