shenwei356 / unikmer

A versatile toolkit for k-mers with taxonomic information
https://bioinf.shenwei.me/unikmer
MIT License
75 stars 7 forks source link

Fails to build on 32-bit architectures #21

Closed nileshpatra closed 3 years ago

nileshpatra commented 3 years ago

Hi, Thanks a lot for your work on unikmer.

At the moment, it works great for 64 bit architectures, but seems to fail on 32-bit ones -- reason being 1<<32 - 1 directly being used here which results in a: src/github.com/shenwei356/unikmer/sketch.go:94:16: constant 4294967295 overflows int

Could you please fix this with compatible type for 32-bit arches?

CC: @shenwei356

shenwei356 commented 3 years ago

fixed