Skip to content

Commit

Permalink
Fix list creation initializing to full size rather than full capacity.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomack committed Jan 2, 2012
1 parent fb29bc0 commit 5c81c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/go/thrift/tlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type tList struct {

func NewTList(t TType, s int) TList {
var v vector.Vector
return &tList{elemType: t, l: v.Resize(s, s)}
return &tList{elemType: t, l: v.Resize(0, s)}
}

func NewTListDefault() TList {
Expand Down

0 comments on commit 5c81c2d

Please sign in to comment.