From 7cb6b6788c0612bcc6be7b5d7f7e9f32c7bce914 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 16 Oct 2008 16:51:12 -0700 Subject: [PATCH] new convert code found error R=r OCL=17327 CL=17327 --- src/lib/time/zoneinfo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/time/zoneinfo.go b/src/lib/time/zoneinfo.go index b355d880c0..f91a25fa1c 100644 --- a/src/lib/time/zoneinfo.go +++ b/src/lib/time/zoneinfo.go @@ -80,7 +80,7 @@ type Zonetime struct { } func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) { - data1 := Data(bytes); + data1 := Data{bytes}; data := &data1; // 4-byte magic "TZif" @@ -120,21 +120,21 @@ func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) { } // Transition times. - txtimes1 := Data(data.Read(n[NTime]*4)); + txtimes1 := Data{data.Read(n[NTime]*4)}; txtimes := &txtimes1; // Time zone indices for transition times. txzones := data.Read(n[NTime]); // Zone info structures - zonedata1 := Data(data.Read(n[NZone]*6)); + zonedata1 := Data{data.Read(n[NZone]*6)}; zonedata := &zonedata1; // Time zone abbreviations. abbrev := data.Read(n[NChar]); // Leap-second time pairs - leapdata1 := Data(data.Read(n[NLeap]*8)); + leapdata1 := Data{data.Read(n[NLeap]*8)}; leapdata := &leapdata1; // Whether tx times associated with local time types -- 2.48.1