Skip to content

Conversation

guillemj
Copy link
Contributor

The int type size depends on the architecture, and when the type is 32-bit then 64-bit values will not fit.

The int type size depends on the architecture, and when the type is
32-bit then 64-bit values will not fit.
@guillemj
Copy link
Contributor Author

BTW noticed this as part of the Debian CI system. https://tracker.debian.org/pkg/golang-github-dennwc-varint

Copy link
Owner

@dennwc dennwc left a comment

Choose a reason for hiding this comment

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

Nice, thank you! Is it used somewhere? :)

@dennwc dennwc merged commit a2babbd into dennwc:master Nov 19, 2021
@guillemj
Copy link
Contributor Author

Yes, latest prometheus versions are using it now. :) https://github.com/prometheus/prometheus/blob/main/go.mod#L15

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