summaryrefslogtreecommitdiff
path: root/misc/cgo/life/life.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/life/life.go')
-rw-r--r--misc/cgo/life/life.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/life/life.go b/misc/cgo/life/life.go
index 036802853..ec000ce3a 100644
--- a/misc/cgo/life/life.go
+++ b/misc/cgo/life/life.go
@@ -23,7 +23,7 @@ var chans [4]chan bool
//export GoStart
// Double return value is just for testing.
func GoStart(i, xdim, ydim, xstart, xend, ystart, yend C.int, a *C.int, n *C.int) (int, int) {
- c := make(chan bool)
+ c := make(chan bool, int(C.MYCONST))
go func() {
C.DoStep(xdim, ydim, xstart, xend, ystart, yend, a, n)
c <- true