mirror of https://github.com/golang/go.git
cmd/compile: avoid string(int) conversion
Rewrite string(int) to a string literal with a NUL byte, in preparation for the vet warning. Updates #32479. Change-Id: If4b6879334884324df3d566b6b4166ecf501d066 Reviewed-on: https://go-review.googlesource.com/c/go/+/221338 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
98cb76799c
commit
08dee51e59
|
|
@ -390,7 +390,7 @@ func FlushLoggedOpts(ctxt *obj.Link, slashPkgPath string) {
|
|||
var w io.WriteCloser
|
||||
|
||||
if slashPkgPath == "" {
|
||||
slashPkgPath = string(0)
|
||||
slashPkgPath = "\000"
|
||||
}
|
||||
subdirpath := filepath.Join(dest, pathEscape(slashPkgPath))
|
||||
err := os.MkdirAll(subdirpath, 0755)
|
||||
|
|
|
|||
Loading…
Reference in New Issue