1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #41026 from XiaodongLoong/master

fix "stat.Rdev" invalid operation mismatched types on mips64el
This commit is contained in:
Akihiro Suda 2020-05-26 16:51:31 +09:00 committed by GitHub
commit 41ac6bef8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {