Skip to content

Commit

Permalink
Disable checkptr behaviour for Sum32WithSeed functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
colin404 committed Jul 25, 2020
1 parent ba59b28 commit b2e4322
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions murmur32.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func Sum32(data []byte) uint32 { return Sum32WithSeed(data, 0) }
// hasher := New32WithSeed(seed)
// hasher.Write(data)
// return hasher.Sum32()
// Disable new -d=checkptr behaviour for Go 1.14
//go:nocheckptr
func Sum32WithSeed(data []byte, seed uint32) uint32 {

h1 := seed
Expand Down

0 comments on commit b2e4322

Please sign in to comment.