]> Cypherpunks repositories - gostls13.git/commitdiff
Correct zoneinfo version number: it's not 2, it's '2'.
authorIan Lance Taylor <iant@golang.org>
Sat, 27 Sep 2008 16:39:37 +0000 (09:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 27 Sep 2008 16:39:37 +0000 (09:39 -0700)
R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=16032
CL=16040

src/lib/time/zoneinfo.go

index 08bc929dfa7068748b0a9232d4cfa04bf09c1445..83ae8b9c73f11906548fe3234fba9e53e153978d 100644 (file)
@@ -90,7 +90,7 @@ func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) {
 
        // 1-byte version, then 15 bytes of padding
        var p *[]byte
-       if p = data.Read(16); p == nil || p[0] != 0 && p[0] != 2 {
+       if p = data.Read(16); p == nil || p[0] != 0 && p[0] != '2' {
                return nil, BadZoneinfo
        }
        vers := p[0]