Skip to content

Commit

Permalink
cmd/internal/obj: stay consistent by defining loop variable outside l…
Browse files Browse the repository at this point in the history
…oop header

Change-Id: Ieb0ae01cf393c4983e809ce95fedeaa854d19a99
GitHub-Last-Rev: 908f756
GitHub-Pull-Request: golang#30004
Reviewed-on: https://go-review.googlesource.com/c/160428
Run-TryBot: Bryan C. Mills <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
  • Loading branch information
leonklingele authored and bradfitz committed Mar 2, 2019
1 parent 2889332 commit 337a1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/objfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit 337a1bd

Please sign in to comment.