mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-22 13:29:01 +00:00
builder: os.SEEK_CUR -> io.SeekCurrent
This commit is contained in:
+2
-2
@@ -150,7 +150,7 @@ func makeArchive(arfile *os.File, objs []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Keep track of the start of the symbol table.
|
// Keep track of the start of the symbol table.
|
||||||
symbolTableStart, err := arfile.Seek(0, os.SEEK_CUR)
|
symbolTableStart, err := arfile.Seek(0, io.SeekCurrent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -172,7 +172,7 @@ func makeArchive(arfile *os.File, objs []string) error {
|
|||||||
|
|
||||||
// Store the start index, for when we'll update the symbol table with
|
// Store the start index, for when we'll update the symbol table with
|
||||||
// the correct file start indices.
|
// the correct file start indices.
|
||||||
offset, err := arfile.Seek(0, os.SEEK_CUR)
|
offset, err := arfile.Seek(0, io.SeekCurrent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user