Skip to content

Commit d8322e3

Browse files
author
wanghuaiqing
committed
cast Rdev of Stat_t to uint64 for mips
Signed-off-by: wanghuaiqing <[email protected]>
1 parent d0f4cf0 commit d8322e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

oci/spec_opts_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ func deviceFromPath(path, permissions string) (*specs.LinuxDevice, error) {
3232
}
3333

3434
var (
35-
devNumber = stat.Rdev
35+
// The type is 32bit on mips.
36+
devNumber = uint64(stat.Rdev) // nolint: unconvert
3637
major = unix.Major(devNumber)
3738
minor = unix.Minor(devNumber)
3839
)

0 commit comments

Comments
 (0)