diff options
Diffstat (limited to 'misc/cgo/life/life.go')
-rw-r--r-- | misc/cgo/life/life.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/cgo/life/life.go b/misc/cgo/life/life.go index ec000ce3a..fda5495e5 100644 --- a/misc/cgo/life/life.go +++ b/misc/cgo/life/life.go @@ -1,3 +1,5 @@ +// skip + // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -9,8 +11,8 @@ import "C" import "unsafe" -func Run(gen, x, y int, a []int) { - n := make([]int, x*y) +func Run(gen, x, y int, a []int32) { + n := make([]int32, x*y) for i := 0; i < gen; i++ { C.Step(C.int(x), C.int(y), (*C.int)(unsafe.Pointer(&a[0])), (*C.int)(unsafe.Pointer(&n[0]))) copy(a, n) |