From 785e92bc526093e6be883db2d9be7bf346a31e7d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 11 Nov 2019 17:05:08 +0000 Subject: [PATCH] Fix plan9 build --- isatty_plan9.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isatty_plan9.go b/isatty_plan9.go index bc0a709..c5b6e0c 100644 --- a/isatty_plan9.go +++ b/isatty_plan9.go @@ -8,7 +8,7 @@ import ( // IsTerminal returns true if the given file descriptor is a terminal. func IsTerminal(fd uintptr) bool { - path, err := syscall.Fd2path(fd) + path, err := syscall.Fd2path(int(fd)) if err != nil { return false }