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

reflect: fix uint16 compile error in find_unique_sized_index #1575

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

timsjostrand
Copy link
Contributor

The left-shift operator causes integer promotion which results in compiler errors on msvc with all warnings enabled.

This is just a quick fix, it might be possible to do the cast on the right hand side of the OR?

the left-shift operator causes integer promotion which results in compiler errors on at least msvc
@stephenberry
Copy link
Owner

I think you're correct and the cast can just be on the right side. But, this looks fine so I'll merge it in. Thanks for the fix!

@stephenberry stephenberry merged commit 514e532 into stephenberry:main Jan 24, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants