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

Resolve ambiguity with TColor ctors #13335

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Feb 18, 2016

With recent change in ROOT: https://root.cern.ch/gitweb?p=root.git;a=commitdiff;h=8ebf9227adcf410134a5733086616ed70de55da3
We gained additional TColor ctor. The problem in CMSSW was that the
first argument was neither Int_t nor Float_t. It all 4 places it was
unsinged int. According to the compiler both TColor ctors are valid, it
can call either of them.

We have to be more explicit that we want the first ctor. Thus cast the
first argument to Int_t to match the first ctor signature.

This does not change behaviour, that was previously done by the compiler.

Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch

With recent change in ROOT: https://root.cern.ch/gitweb?p=root.git;a=commitdiff;h=8ebf9227adcf410134a5733086616ed70de55da3
We gained additional TColor ctor. The problem in CMSSW was that the
first argument was neither Int_t nor Float_t. It all 4 places it was
unsinged int. According to the compiler both TColor ctors are valid, it
can call either of them.

We have to be more explicit that we want the first ctor. Thus cast the
first argument to Int_t to match the first ctor signature.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlt for CMSSW_8_0_X.

It involves the following packages:

Fireworks/Core
SimTracker/TrackerMaterialAnalysis

@civanch, @Dr15Jones, @mdhildreth, @cmsbuild, @alja, @davidlange6 can you please review it and eventually sign? Thanks.
@makortel, @GiacomoSguazzoni, @rovere, @VinInn, @alja, @cerati, @threus, @dgulhan this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@davidlt davidlt mentioned this pull request Feb 18, 2016
@davidlt
Copy link
Contributor Author

davidlt commented Feb 18, 2016

I just scheduled the test via Jenkins.

@davidlange6
Copy link
Contributor

Thanks!

davidlange6 added a commit that referenced this pull request Feb 18, 2016
@davidlange6 davidlange6 merged commit ecdb8f5 into cms-sw:CMSSW_8_0_X Feb 18, 2016
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

Successfully merging this pull request may close these issues.

3 participants