vorbis-go icon indicating copy to clipboard operation
vorbis-go copied to clipboard

constant 4294967296 overflows int on armhf

Open nanu-c opened this issue 5 years ago • 0 comments

# _/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]

nanu-c avatar May 18 '20 18:05 nanu-c