1
0
Fork 0
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:
Xiaodong Liu 2020-05-26 14:50:06 +08:00
parent 0c350e87a0
commit a366fe41cb

View file

@ -31,7 +31,8 @@ func TestFromStatT(t *testing.T) {
if stat.Gid != s.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")
}
if stat.Mtim != s.Mtim() {