]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid string(int) conversion
authorsmasher164 <aindurti@gmail.com>
Thu, 27 Feb 2020 08:14:21 +0000 (03:14 -0500)
committerIan Lance Taylor <iant@golang.org>
Tue, 10 Mar 2020 00:24:30 +0000 (00:24 +0000)
commit08dee51e59413ea57d758cd8b9f330a95d7abf23
treea7dcaac2fb1a8a3bd1835e34dea6a0c7e7b5ecff
parent98cb76799c3053e779c4e1b61bb50705d25dd77f
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>
src/cmd/compile/internal/logopt/log_opts.go