Merge branch 'master' of https://github.com/uriel/Taipei-Torrent into uriel-master

Conflicts:
	taipei/files.go
This commit is contained in:
Yves Junqueira 2012-09-06 01:13:01 +02:00
commit d41d83ce5d

View file

@ -66,6 +66,7 @@ func (j *decoder) Elem(i int) Builder {
v = make([]interface{}, 0, 8)
j.value = v
}
/* XXX There is a bug in here somewhere, but append() works fine.
lens := len(v)
if cap(v) <= lens {
news := make([]interface{}, 0, lens*2)
@ -73,6 +74,8 @@ func (j *decoder) Elem(i int) Builder {
v = news
}
v = v[0 : lens+1]
*/
v = append(v, nil)
j.value = v
return newDecoder(v, i)
}