diff options
Diffstat (limited to 'src/pkg/runtime/slice.c')
| -rw-r--r-- | src/pkg/runtime/slice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c index c61c315e8..4ee5fc51f 100644 --- a/src/pkg/runtime/slice.c +++ b/src/pkg/runtime/slice.c @@ -23,14 +23,14 @@ void ret.cap = cap; if((t->elem->kind&KindNoPointers)) - ret.array = mallocgc(size, RefNoPointers, 1); + ret.array = mallocgc(size, RefNoPointers, 1, 1); else ret.array = mal(size); FLUSH(&ret); if(debug) { - printf("makeslice(%S, %d, %d); ret=", + printf("makeslice(%S, %d, %d); ret=", *t->string, nel, cap); ·printslice(ret); } |
