Skip to content

Return uint64 from exponentBase2 function #753

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

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

fesiqueira
Copy link
Contributor

Changes

  1. Change exponentBase2 function return type to uint64, so it can be built with GOARCH=386.

Verification

All the tests already in place passed.

A 32bit binary could not be built because `1 << 62` would overflow the
return `uint` type, as it is an architecture dependent type.

Closes grpc-ecosystem#752
@johanbrandhorst johanbrandhorst merged commit 8b26373 into grpc-ecosystem:main Feb 26, 2025
5 checks passed
@macabu
Copy link

macabu commented Mar 5, 2025

Hi @johanbrandhorst would it be possible to tag a new release with this fix?

@johanbrandhorst
Copy link
Collaborator

Done: https://github.com/grpc-ecosystem/go-grpc-middleware/releases/tag/v2.3.1

@macabu
Copy link

macabu commented Mar 6, 2025

TYVM!

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.

3 participants