Skip to content

Commit bec3117

Browse files
committed
Avoid uint16 overflow error.
1 parent 765b531 commit bec3117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol/signature_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func TestEncodeSignaturesTooMany(t *testing.T) {
309309
// 1024 signatures -> 1024 * 64 = 65536 > math.MaxUint16 (65535)
310310
const n = 1024
311311
sigs := make([]Data, n)
312-
for i := 0; i < n; i++ {
312+
for i := range n {
313313
var r, s [32]byte
314314
r[31] = 1
315315
s[31] = 2

0 commit comments

Comments
 (0)