Skip to content

Commit 80a91d3

Browse files
tklausergopherbot
authored andcommitted
os: use goarch.BigEndian
Change-Id: I83c23ae0933f6abe4c07144f69c3d9c18aece6e8 Reviewed-on: https://go-review.googlesource.com/c/go/+/569175 Auto-Submit: Ian Lance Taylor <[email protected]> Auto-Submit: Tobias Klauser <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 1a800d1 commit 80a91d3

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

src/os/dir_unix.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package os
88

99
import (
10+
"internal/goarch"
1011
"io"
1112
"runtime"
1213
"sync"
@@ -153,7 +154,7 @@ func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
153154
if len(b) < int(off+size) {
154155
return 0, false
155156
}
156-
if isBigEndian {
157+
if goarch.BigEndian {
157158
return readIntBE(b[off:], size), true
158159
}
159160
return readIntLE(b[off:], size), true

src/os/endian_big.go

-9
This file was deleted.

src/os/endian_little.go

-9
This file was deleted.

0 commit comments

Comments
 (0)