mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Fix script/benchstat-ratio.go when there's no '/'
This commit is contained in:
1 parent
3e5afc3e52
commit
85bdcd1e1e
1 file changed
+1
-1
@@ -192,7 +192,7 @@ func baselineKeyFor(key string) (bKey string) {
|
||||
}
|
||||
j := strings.IndexByte(key[i:], '/')
|
||||
if j < 0 {
|
||||
return ""
|
||||
j = len(key) - i
|
||||
}
|
||||
return key[:1] + *baseline + key[i:i+j] + gccSuffix
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user