You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i := 0; i < b.N; i++ {
r.Seek(0, 0)
scanner := &Scanner{
br: byteReader{
data: buf[:0],
r: r,
},
}
scanner.Next() // add scanner.Next() here to escape panic
n := scanner.parseNumber(scanner.br.window(0)[0]) // panic was here
Activity
Fix panic in benchmark test
AlexanderYastrebov commentedon Dec 25, 2023
Looks like it was fixed by 00534bc