Skip to content

Commit

Permalink
Merge pull request #13 from pix/master
Browse files Browse the repository at this point in the history
Fixed compilation on GOARCH=386
  • Loading branch information
C-Sto authored Mar 3, 2021
2 parents 5237b4d + 13b5255 commit d6ea835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/winregistry/winregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func (w WinregRegistry) getLhHash(key string) uint32 {
res += int(b)
}

return uint32(res % 0x100000000)
return uint32(int64(res) % 0x100000000)
}

type reg_hash struct {
Expand Down

0 comments on commit d6ea835

Please sign in to comment.