From 62bee037599929a6e9146f29d10dd5208c43507d Mon Sep 17 00:00:00 2001 From: kortschak Date: Wed, 15 Jun 2016 08:22:37 +0930 Subject: [PATCH] unix: fix Ppoll for arm64 Fixes golang/go#16065. Change-Id: I97d06b7038e7c7507e765736899cfa243f45805c Reviewed-on: https://go-review.googlesource.com/24121 Reviewed-by: Ian Lance Taylor --- unix/syscall_linux_arm64.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/syscall_linux_arm64.go b/unix/syscall_linux_arm64.go index 4211cf60..4b6ff2a8 100644 --- a/unix/syscall_linux_arm64.go +++ b/unix/syscall_linux_arm64.go @@ -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)