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:
parent
56c9f8e8cf
commit
908f756518
@ -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++ {
|
||||
|
Loading…
Reference in New Issue
Block a user