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

MAINT: Make bitfield integers unsigned #25118

Merged
merged 1 commit into from Nov 11, 2023

Conversation

charris
Copy link
Member

@charris charris commented Nov 11, 2023

Backport of #25051.

I am getting a lot of compile warnings recently. Not sure exactly why, but one source here is that the 1 we store is cast to -1 for a signed integer bitfield. Making it explicitly unsigned quenches the warning and seems easiest.


This was just the easiest. I have two other sources of warnings:

  • Headers which are included in places but were once designed to be more stand-alone and thus redefine things like NpyAuxData. I would have thought that is fine in C, but I am getting requires C11 warning.
  • Unused simd functions, I think because on my target (M1) some fallback implementations are really guaranteed to not be used.siest.

I am getting a lot of compile warnings recently.  Not sure exactly
why, but one source here is that the 1 we store is cast to -1 for
a signed integer bitfield.  Making it explicitly unsigned quenches
the warning and seems easiest.
@charris charris added 03 - Maintenance 08 - Backport Used to tag backport PRs labels Nov 11, 2023
@charris charris added this to the 1.26.2 release milestone Nov 11, 2023
@charris charris merged commit 9887c9c into numpy:maintenance/1.26.x Nov 11, 2023
59 checks passed
@charris charris deleted the backport-25051 branch November 11, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
03 - Maintenance 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants