Commit 62bee037 authored by kortschak's avatar kortschak Committed by Ian Lance Taylor

unix: fix Ppoll for arm64

Fixes golang/go#16065.

Change-Id: I97d06b7038e7c7507e765736899cfa243f45805c
Reviewed-on: https://go-review.googlesource.com/24121Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 5a8c7f28
......@@ -182,8 +182,8 @@ const (
func Poll(fds []PollFd, timeout int) (n int, err error) {
var ts *Timespec
if timeout >= 0 {
ts = new(*Timespec)
*ts = NsecToTimespec(timeout * 1e6)
ts = new(Timespec)
*ts = NsecToTimespec(int64(timeout) * 1e6)
}
if len(fds) == 0 {
return ppoll(nil, 0, ts, nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment