summaryrefslogtreecommitdiff
path: root/misc/cgo/life/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/life/main.go')
-rw-r--r--misc/cgo/life/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/life/main.go b/misc/cgo/life/main.go
index 7c2c0c73e..9cfed434b 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++ {