Skip to content

Commit

Permalink
Merge pull request #28795 from cms-sw/smuzaffar-patch-2
Browse files Browse the repository at this point in the history
[CLANG] Fix compilation error with LLVM 9.0.1
  • Loading branch information
cmsbuild authored Jan 27, 2020
2 parents 18b1b37 + e7a3d83 commit 8b29196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/TrackerRecHit2D/interface/FastTrackerRecHit.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace fastTrackerRecHitType {
siStripProjectedStereo2D = 5,
};
inline trackerHitRTTI::RTTI rtti(HitType hitType) {
if (hitType >= 0 && hitType <= 2)
if (hitType >= siPixel && hitType <= siStrip2D)
return trackerHitRTTI::fastSingle;
else if (hitType == siStripMatched2D)
return trackerHitRTTI::fastMatch;
Expand Down

0 comments on commit 8b29196

Please sign in to comment.