Skip to content

Commit 092d6b7

Browse files
committed
fix: len
1 parent ab4f65c commit 092d6b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/bitutil/or_asm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
package bitutil
99

1010
func orBytes(dst, a, b []byte) int {
11-
orBytesASM(&dst[0], &a[0], &b[0], len(a))
11+
n := min(len(a), len(b))
12+
orBytesASM(&dst[0], &a[0], &b[0], n)
1213
return len(a)
1314
}
1415

0 commit comments

Comments
 (0)