diff options
Diffstat (limited to 'src/cmd/fix/netipv6zone.go')
| -rw-r--r-- | src/cmd/fix/netipv6zone.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/fix/netipv6zone.go b/src/cmd/fix/netipv6zone.go index fe973a211..195c21807 100644 --- a/src/cmd/fix/netipv6zone.go +++ b/src/cmd/fix/netipv6zone.go @@ -51,7 +51,7 @@ func netipv6zone(f *ast.File) bool { Value: e, } case 1: - if e.(*ast.BasicLit).Value == "0" { + if elit, ok := e.(*ast.BasicLit); ok && elit.Value == "0" { cl.Elts = append(cl.Elts[:i], cl.Elts[i+1:]...) } else { cl.Elts[i] = &ast.KeyValueExpr{ |
