shenwei356 / kmcp

Accurate metagenomic profiling && Fast large-scale sequence/genome searching
https://bioinf.shenwei.me/kmcp
MIT License
180 stars 13 forks source link

0.8.3: Fails on i386: 1 << 32 - 1 (untyped int constant 4294967295) overflows int #19

Closed yurivict closed 2 years ago

yurivict commented 2 years ago
# github.com/shenwei356/kmcp/kmcp/cmd
kmcp/cmd/compute.go:287:14: 1 << 32 - 1 (untyped int constant 4294967295) overflows int
kmcp/cmd/compute.go:294:19: 1 << 32 - 1 (untyped int constant 4294967295) overflows int
kmcp/cmd/compute.go:300:17: 1 << 32 - 1 (untyped int constant 4294967295) overflows int
*** Error code 2

Should 1<<32-1 be uint64(1)<<32-1?

FreeBSD 13.1

shenwei356 commented 2 years ago

Sorry, I should have tested it. Please use the new flag: v0.8.3.1.

yurivict commented 2 years ago

Unfortunately Golang doesn't support version numbers with 4 numbers, see https://github.com/golang/go/issues/54515#issuecomment-1219134438

shenwei356 commented 2 years ago

Please try the v0.8.4

yurivict commented 2 years ago

Thanks!