Update to current version of Go library.

From-SVN: r173931
This commit is contained in:
Ian Lance Taylor 2011-05-20 00:18:15 +00:00
parent 37cb25ed7a
commit 9ff56c9570
363 changed files with 19111 additions and 4995 deletions

View file

@ -152,7 +152,7 @@ func TestWriteT(t *testing.T) {
t.Errorf("WriteT: have nil, want non-nil")
}
tv := reflect.Indirect(reflect.NewValue(ts)).(*reflect.StructValue)
tv := reflect.Indirect(reflect.ValueOf(ts))
for i, n := 0, tv.NumField(); i < n; i++ {
err = Write(buf, BigEndian, tv.Field(i).Interface())
if err == nil {