diff --git a/misc/cgo/life/main.go b/misc/cgo/life/main.go index 7c2c0c73efe..9cfed434be0 100644 --- a/misc/cgo/life/main.go +++ b/misc/cgo/life/main.go @@ -29,7 +29,7 @@ func main() { } } - life.Run(*gen, *dim, *dim, &a) + life.Run(*gen, *dim, *dim, a[:]) for i := 0; i < *dim; i++ { for j := 0; j < *dim; j++ {