Skip to content

Commit 337a1bd

Browse files
leonklingelebradfitz
authored andcommitted
cmd/internal/obj: stay consistent by defining loop variable outside loop 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 <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
1 parent 2889332 commit 337a1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/internal/obj/objfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (w *objWriter) writeSymDebug(s *LSym) {
252252
for i := 0; i < len(s.P); i += 16 {
253253
fmt.Fprintf(ctxt.Bso, "\t%#04x", uint(i))
254254
j := i
255-
for j = i; j < i+16 && j < len(s.P); j++ {
255+
for ; j < i+16 && j < len(s.P); j++ {
256256
fmt.Fprintf(ctxt.Bso, " %02x", s.P[j])
257257
}
258258
for ; j < i+16; j++ {

0 commit comments

Comments
 (0)