We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4f65c commit 092d6b7Copy full SHA for 092d6b7
common/bitutil/or_asm.go
@@ -8,7 +8,8 @@
8
package bitutil
9
10
func orBytes(dst, a, b []byte) int {
11
- orBytesASM(&dst[0], &a[0], &b[0], len(a))
+ n := min(len(a), len(b))
12
+ orBytesASM(&dst[0], &a[0], &b[0], n)
13
return len(a)
14
}
15
0 commit comments