Browse Source

Merge pull request #41026 from XiaodongLoong/master

fix "stat.Rdev" invalid operation mismatched types on mips64el
Akihiro Suda 5 năm trước cách đây
mục cha
commit
41ac6bef8d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      pkg/system/stat_unix_test.go

+ 2 - 1
pkg/system/stat_unix_test.go

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