1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:00:03 -07:00

cmd/internal/obj: stay consistent by defining loop variable outside loop header

This commit is contained in:
Leon Klingele 2019-01-30 18:04:40 +01:00
parent 56c9f8e8cf
commit 908f756518
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211

View File

@ -252,7 +252,7 @@ func (w *objWriter) writeSymDebug(s *LSym) {
for i := 0; i < len(s.P); i += 16 {
fmt.Fprintf(ctxt.Bso, "\t%#04x", uint(i))
j := i
for j = i; j < i+16 && j < len(s.P); j++ {
for ; j < i+16 && j < len(s.P); j++ {
fmt.Fprintf(ctxt.Bso, " %02x", s.P[j])
}
for ; j < i+16; j++ {