1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:35:19 -07:00

new convert code found error

R=r
OCL=17327
CL=17327
This commit is contained in:
Russ Cox 2008-10-16 16:51:12 -07:00
parent 32b84d5a94
commit 7cb6b6788c

View File

@ -80,7 +80,7 @@ type Zonetime struct {
} }
func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) { func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) {
data1 := Data(bytes); data1 := Data{bytes};
data := &data1; data := &data1;
// 4-byte magic "TZif" // 4-byte magic "TZif"
@ -120,21 +120,21 @@ func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) {
} }
// Transition times. // Transition times.
txtimes1 := Data(data.Read(n[NTime]*4)); txtimes1 := Data{data.Read(n[NTime]*4)};
txtimes := &txtimes1; txtimes := &txtimes1;
// Time zone indices for transition times. // Time zone indices for transition times.
txzones := data.Read(n[NTime]); txzones := data.Read(n[NTime]);
// Zone info structures // Zone info structures
zonedata1 := Data(data.Read(n[NZone]*6)); zonedata1 := Data{data.Read(n[NZone]*6)};
zonedata := &zonedata1; zonedata := &zonedata1;
// Time zone abbreviations. // Time zone abbreviations.
abbrev := data.Read(n[NChar]); abbrev := data.Read(n[NChar]);
// Leap-second time pairs // Leap-second time pairs
leapdata1 := Data(data.Read(n[NLeap]*8)); leapdata1 := Data{data.Read(n[NLeap]*8)};
leapdata := &leapdata1; leapdata := &leapdata1;
// Whether tx times associated with local time types // Whether tx times associated with local time types