lukechampine / blake3

An AVX-512 accelerated implementation of the BLAKE3 cryptographic hash function
MIT License
352 stars 25 forks source link

go get fails due to signed shift #6

Closed james-antill closed 4 years ago

james-antill commented 4 years ago
% go get lukechampine.com/blake3       
# lukechampine.com/blake3
../../../lukechampine.com/blake3/blake3.go:302:16: invalid operation: 1 << i (shift count type int, must be unsigned integer)
lukechampine commented 4 years ago

This is a feature that was added in Go 1.13: https://golang.org/doc/go1.13#language

It's not a big deal to change it, but seeing as Go 1.14 is due out this month, I think it's fair to require Go 1.13.