Skip to content

Commit

Permalink
orb: use range-over-int
Browse files Browse the repository at this point in the history
  • Loading branch information
fzipp committed Feb 12, 2024
1 parent df27e28 commit 0827e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/fzipp/oberon-compiler

go 1.18
go 1.22.0
2 changes: 1 addition & 1 deletion orb/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ func (b *Base) Export(modId ors.Ident, newSF bool) (int32, bool) {
obj = obj.Next
}
padLen := 4 - int(w.Len()%4)
for i := 0; i < padLen; i++ {
for range padLen {
files.Write(w, 0)
}
for b.ref = FormRecord + 1; b.ref < maxTypTab; b.ref++ {
Expand Down

0 comments on commit 0827e9a

Please sign in to comment.