aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-string-to-byte-array.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-string-to-byte-array.c')
-rw-r--r--libgo/runtime/go-string-to-byte-array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-string-to-byte-array.c b/libgo/runtime/go-string-to-byte-array.c
index a4edb50..61591eb 100644
--- a/libgo/runtime/go-string-to-byte-array.c
+++ b/libgo/runtime/go-string-to-byte-array.c
@@ -23,6 +23,6 @@ __go_string_to_byte_array (String str)
__builtin_memset (data + str.len, 0, cap - (uintptr) str.len);
ret.__values = (void *) data;
ret.__count = str.len;
- ret.__capacity = (intgo) cap;
+ ret.__capacity = str.len;
return ret;
}