Fix type assertions

This commit is contained in:
Evgenii 2019-06-24 10:07:16 +03:00
parent e1d9fc8058
commit ad8c7bce1b
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ type digest struct {
} }
// type assertion // type assertion
var _ hash.Hash = new(digest) var _ hash.Hash = (*digest)(nil)
var ( var (
minmax = [2]gf127.GF127{{0, 0}, {math.MaxUint64, math.MaxUint64}} minmax = [2]gf127.GF127{{0, 0}, {math.MaxUint64, math.MaxUint64}}

View file

@ -10,7 +10,7 @@ type digest2 struct {
x [2]gf127.GF127x2 x [2]gf127.GF127x2
} }
var _ hash.Hash = new(digest2) var _ hash.Hash = (*digest2)(nil)
func (d *digest2) Write(data []byte) (n int, err error) { func (d *digest2) Write(data []byte) (n int, err error) {
n = len(data) n = len(data)