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

Fix overflow on 32-bit platforms. #2

Merged
merged 1 commit into from
Oct 4, 2018
Merged

Conversation

kevina
Copy link
Contributor

@kevina kevina commented Oct 4, 2018

This fixes a compile error in 32-bit platforms:

# github.com/libp2p/go-buffer-pool
./pool.go:55:12: constant 4294967296 overflows int
./pool.go:68:31: constant 4294967296 overflows int

Tested using go version go1.10.4 linux/386.

Closes #1

CC @Stebalien

@Stebalien Stebalien merged commit e8a991d into master Oct 4, 2018
@ghost ghost removed the status/in-progress In progress label Oct 4, 2018
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.

Overflow on 32 bits platforms.
2 participants