mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix "stat.Rdev" invalid operation mismatched types on mips64el
compile error the "stat.Rdev" variable and "s.Rdev" mismatched types on mips64el convert "stat.Rdev" type to uint64 explicitly Signed-off-by: Xiaodong Liu <liuxiaodong@loongson.cn>
This commit is contained in:
parent
0c350e87a0
commit
a366fe41cb
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ func TestFromStatT(t *testing.T) {
|
||||||
if stat.Gid != s.GID() {
|
if stat.Gid != s.GID() {
|
||||||
t.Fatal("got invalid gid")
|
t.Fatal("got invalid gid")
|
||||||
}
|
}
|
||||||
if stat.Rdev != s.Rdev() {
|
//nolint:unconvert // conversion needed to fix mismatch types on mips64el
|
||||||
|
if uint64(stat.Rdev) != s.Rdev() {
|
||||||
t.Fatal("got invalid rdev")
|
t.Fatal("got invalid rdev")
|
||||||
}
|
}
|
||||||
if stat.Mtim != s.Mtim() {
|
if stat.Mtim != s.Mtim() {
|
||||||
|
|
Loading…
Reference in a new issue