diff options
author | Ian Lance Taylor <iant@google.com> | 2011-01-21 18:19:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-21 18:19:03 +0000 |
commit | ff5f50c52c421d75940ef9392211e3ab24d71332 (patch) | |
tree | 27d8768fb1d25696d3c40b42535eb5e073c278da /libgo/go/json/stream.go | |
parent | d6ed1c8903e728f4233122554bab5910853338bd (diff) | |
download | gcc-ff5f50c52c421d75940ef9392211e3ab24d71332.tar.gz |
Remove the types float and complex.
Update to current version of Go library.
Update testsuite for removed types.
* go-lang.c (go_langhook_init): Omit float_type_size when calling
go_create_gogo.
* go-c.h: Update declaration of go_create_gogo.
From-SVN: r169098
Diffstat (limited to 'libgo/go/json/stream.go')
-rw-r--r-- | libgo/go/json/stream.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/go/json/stream.go b/libgo/go/json/stream.go index d4fb3466079..cb9b16559ed 100644 --- a/libgo/go/json/stream.go +++ b/libgo/go/json/stream.go @@ -5,7 +5,6 @@ package json import ( - "bytes" "io" "os" ) @@ -177,7 +176,7 @@ func (m *RawMessage) UnmarshalJSON(data []byte) os.Error { if m == nil { return os.NewError("json.RawMessage: UnmarshalJSON on nil pointer") } - *m = bytes.Add((*m)[0:0], data) + *m = append((*m)[0:0], data...) return nil } |