diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-02-18 05:56:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-02-18 05:56:46 +0000 |
commit | 43414a5dd3a9b9b02bc675e1c33140021c3848aa (patch) | |
tree | 66790d16b1ce811193f21d132f271823d10b20f9 /libgo/runtime/go-string-to-byte-array.c | |
parent | fa837fb670c502e7fbcb3f48aa1932b55704521c (diff) | |
download | gcc-43414a5dd3a9b9b02bc675e1c33140021c3848aa.zip gcc-43414a5dd3a9b9b02bc675e1c33140021c3848aa.tar.gz gcc-43414a5dd3a9b9b02bc675e1c33140021c3848aa.tar.bz2 |
libgo: Update to final Go 1.6 release.
Reviewed-on: https://go-review.googlesource.com/19592
From-SVN: r233515
Diffstat (limited to 'libgo/runtime/go-string-to-byte-array.c')
-rw-r--r-- | libgo/runtime/go-string-to-byte-array.c | 2 |
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; } |