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
1 changed files with 2 additions and 1 deletions

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