]> Cypherpunks repositories - gostls13.git/commitdiff
new convert code found error
authorRuss Cox <rsc@golang.org>
Thu, 16 Oct 2008 23:51:12 +0000 (16:51 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 16 Oct 2008 23:51:12 +0000 (16:51 -0700)
R=r
OCL=17327
CL=17327

src/lib/time/zoneinfo.go

index b355d880c0e1b3c821c7d39e4dd18b32ad51c0a0..f91a25fa1cc1b6c88c5ec6af10afa3f434ec68e8 100644 (file)
@@ -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