diff --git a/src/syscall/exec_unix_test.go b/src/syscall/exec_unix_test.go index f6a2a28cb7a..accf6cc5c51 100644 --- a/src/syscall/exec_unix_test.go +++ b/src/syscall/exec_unix_test.go @@ -383,7 +383,7 @@ func TestRlimitRestored(t *testing.T) { t.Fatalf("could not parse %q as number: %v", s, v) } - if v != orig.Cur { + if v != uint64(orig.Cur) { t.Errorf("exec rlimit = %d, want %d", v, orig) } }