Skip to content

Commit

Permalink
primitives/merlin: Fix the 32-bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Yawning committed Jun 9, 2021
1 parent 9075215 commit 610140d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/merlin/merlin.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ type transcriptRng struct {

func (rng *transcriptRng) Read(p []byte) (int, error) {
l := len(p)
if l > math.MaxUint32 {
if uint64(l) > math.MaxUint32 {
return 0, fmt.Errorf("merlin: read length exceeds limits")
}

Expand Down

0 comments on commit 610140d

Please sign in to comment.