Skip to content

Commit

Permalink
Fix clang warning about unsigned comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- committed May 2, 2016
1 parent ff293ab commit 020e9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion L1Trigger/L1TCaloLayer1/src/UCTLayer1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool UCTLayer1::clearEvent() {
}

const UCTRegion* UCTLayer1::getRegion(int regionEtaIndex, uint32_t regionPhiIndex) const {
if(regionEtaIndex == 0 || std::abs(regionEtaIndex) > NRegionsInCard || regionPhiIndex >= MaxUCTRegionsPhi) {
if(regionEtaIndex == 0 || (uint32_t) std::abs(regionEtaIndex) > NRegionsInCard || regionPhiIndex >= MaxUCTRegionsPhi) {
return 0;
}
// Get (0,0) tower region information
Expand Down

0 comments on commit 020e9d6

Please sign in to comment.