]> Cypherpunks repositories - gostls13.git/commitdiff
- adjust to new token.Position definition
authorRobert Griesemer <gri@golang.org>
Tue, 14 Jul 2009 17:45:57 +0000 (10:45 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 14 Jul 2009 17:45:57 +0000 (10:45 -0700)
R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31574
CL=31604

src/pkg/go/printer/printer.go

index e09387cf7f086d430046133a08c5972289fe3046..4196eb8d8cb775a03d26c9f7d5ce8c2bbe1fe689 100644 (file)
@@ -55,7 +55,7 @@ func (p *printer) nextComment() {
        if p.comments != nil && p.cindex < len(p.comments) && p.comments[p.cindex] != nil {
                p.cpos = p.comments[p.cindex].List[0].Pos();
        } else {
-               p.cpos = token.Position{1<<30, 1<<30, 1};  // infinite
+               p.cpos = token.Position{"", 1<<30, 1<<30, 1};  // infinite
        }
 }