Commit 7cb6b678 authored by Russ Cox's avatar Russ Cox

new convert code found error

R=r
OCL=17327
CL=17327
parent 32b84d5a
...@@ -80,7 +80,7 @@ type Zonetime struct { ...@@ -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) { ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment