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

constant 4294967296 overflows int on armhf #10

Open
nanu-c opened this issue May 18, 2020 · 0 comments
Open

constant 4294967296 overflows int on armhf #10

nanu-c opened this issue May 18, 2020 · 0 comments

Comments

@nanu-c
Copy link

nanu-c commented May 18, 2020

# _/home/nanu/go/src/github.com/xlab/vorbis-go/cmd/vorbis-player
../../../main.go:154:14: constant 4294967296 overflows int
../../../main.go:154:14: array bound is too large

this line out := (*(*[1 << 32]float32)(unsafe.Pointer(output)))[:int(sampleCount)*channels]
could be changed to out := (*(*[1 << 20]float32)(unsafe.Pointer(output)))[:int(sampleCount)*channels]

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

No branches or pull requests

1 participant