forked from TrueCloudLab/tzhash
Fix type assertions
This commit is contained in:
parent
e1d9fc8058
commit
ad8c7bce1b
2 changed files with 2 additions and 2 deletions
|
@ -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}}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue