Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too large value used in testHitPattern #24309

Closed
Dr15Jones opened this issue Aug 15, 2018 · 7 comments
Closed

Too large value used in testHitPattern #24309

Dr15Jones opened this issue Aug 15, 2018 · 7 comments

Comments

@Dr15Jones
Copy link
Contributor

In the test DataFormats/TrackReco/test/testHitPattern.cpp, the test uses an array of uint32_t and is passing those values to a function that takes a uint16_t:
https://github.com/cms-sw/cmssw/blob/master/DataFormats/TrackReco/test/testHitPattern.cpp#L16

The values in the array are larger than the largest allowed 16bit number.

This is generating a clang warning.

@Dr15Jones
Copy link
Contributor Author

assign reconstruction

@cmsbuild
Copy link
Contributor

New categories assigned: reconstruction

@slava77,@perrotta you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Issue was created by @Dr15Jones Chris Jones.

@davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

@VinInn FYI

@VinInn
Copy link
Contributor

VinInn commented Oct 31, 2018

cool!
the test is supposed to test

bool appendHit(const DetId &id, TrackingRecHit::Type hitType, const TrackerTopology& ttopo);

that changed signature in the mean time (topology added)
NOT

bool appendHit(const uint16_t pattern, TrackingRecHit::Type hitType);

@slava77
Copy link
Contributor

slava77 commented May 24, 2019

+1

this was apparently fixed in #25767

@cmsbuild
Copy link
Contributor

This issue is fully signed and ready to be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants