Skip to content

Commit 62bee03

Browse files
kortschakianlancetaylor
authored andcommitted
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 <[email protected]>
1 parent 5a8c7f2 commit 62bee03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unix/syscall_linux_arm64.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ const (
182182
func Poll(fds []PollFd, timeout int) (n int, err error) {
183183
var ts *Timespec
184184
if timeout >= 0 {
185-
ts = new(*Timespec)
186-
*ts = NsecToTimespec(timeout * 1e6)
185+
ts = new(Timespec)
186+
*ts = NsecToTimespec(int64(timeout) * 1e6)
187187
}
188188
if len(fds) == 0 {
189189
return ppoll(nil, 0, ts, nil)

0 commit comments

Comments
 (0)