diff --git a/cancelreader_bsd.go b/cancelreader_bsd.go index 0f6653a..c6154f0 100644 --- a/cancelreader_bsd.go +++ b/cancelreader_bsd.go @@ -1,3 +1,4 @@ +//go:build darwin || freebsd || netbsd || openbsd // +build darwin freebsd netbsd openbsd // nolint:revive @@ -133,7 +134,8 @@ func (r *kqueueCancelReader) wait() error { break } - switch events[0].Ident { + ident := uint64(events[0].Ident) + switch ident { case uint64(r.file.Fd()): return nil case uint64(r.cancelSignalReader.Fd()):