]> Cypherpunks repositories - gostls13.git/commit
pkg/syscall: Plan 9, 64-bit: Update error checks from sys calls.
authorAkshat Kumar <seed@mail.nanosouffle.net>
Thu, 27 Sep 2012 23:56:44 +0000 (09:56 +1000)
committerRob Pike <r@golang.org>
Thu, 27 Sep 2012 23:56:44 +0000 (09:56 +1000)
commit8fdc90acf413be6063f791c43bcb65b3d75d1059
tree8887314df5d21ffc45cf6b8e1836466482005c50
parenta7d4c3f43dbcab516b6bbd4723fbff30469898a7
pkg/syscall: Plan 9, 64-bit: Update error checks from sys calls.

The system calls return 32-bit integers. With the recent change
in size of `int' in Go for amd64, the type conversion was not
catching `-1' return values. This change makes the conversion
explicitly `int32'.

R=rsc, rminnich, npe, r
CC=golang-dev
https://golang.org/cl/6576057
src/pkg/syscall/mksyscall.pl
src/pkg/syscall/zsyscall_plan9_amd64.go