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 3b646c8..10c565e 100644
--- a/libgo/runtime/go-string-to-byte-array.c
+++ b/libgo/runtime/go-string-to-byte-array.c
@@ -15,7 +15,7 @@ __go_string_to_byte_array (struct __go_string str)
unsigned char *data;
struct __go_open_array ret;
- data = (unsigned char *) runtime_mallocgc (str.__length, RefNoPointers, 1, 0);
+ data = (unsigned char *) runtime_mallocgc (str.__length, FlagNoPointers, 1, 0);
__builtin_memcpy (data, str.__data, str.__length);
ret.__values = (void *) data;
ret.__count = str.__length;