Skip to content

Comments

[hist] Add RBinIndex conversion overloads#20879

Merged
hahnjo merged 2 commits intoroot-project:masterfrom
hahnjo:hist-sign-conversion-index
Jan 16, 2026
Merged

[hist] Add RBinIndex conversion overloads#20879
hahnjo merged 2 commits intoroot-project:masterfrom
hahnjo:hist-sign-conversion-index

Conversation

@hahnjo
Copy link
Member

@hahnjo hahnjo commented Jan 14, 2026

This avoids sign conversion warnings for signed integers, for example from literals. We then need all overloads to guarantee one unambiguous constructor candidate following integer promotion.

This avoids sign conversion warnings for signed integers, for example
from literals. We then need all overloads to guarantee one unambiguous
constructor candidate following integer promotion.
@hahnjo hahnjo self-assigned this Jan 14, 2026
@hahnjo hahnjo requested a review from dpiparo as a code owner January 14, 2026 08:16
@hahnjo hahnjo added the in:Hist label Jan 14, 2026
Copy link
Member

@bellenot bellenot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm this PR fixes the warnings on Windows. Thanks Jonas!

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Test Results

    23 files      23 suites   3d 22h 25m 4s ⏱️
 3 813 tests  3 813 ✅ 0 💤 0 ❌
80 376 runs  80 376 ✅ 0 💤 0 ❌

Results for commit 1f3840e.

♻️ This comment has been updated with latest results.

Copy link
Member

@hageboeck hageboeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look great, but it seems to be the safest way to avoid all the warnings. 🥲
👍

@hahnjo hahnjo merged commit 527448e into root-project:master Jan 16, 2026
56 of 60 checks passed
@hahnjo hahnjo deleted the hist-sign-conversion-index branch January 16, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants