]> Cypherpunks repositories - gostls13.git/commitdiff
- fixed bug that wasn't caught by 6g (but by gccgo)
authorRobert Griesemer <gri@golang.org>
Fri, 17 Oct 2008 23:27:49 +0000 (16:27 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 17 Oct 2008 23:27:49 +0000 (16:27 -0700)
R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=17380
CL=17380

usr/gri/pretty/parser.go

index f634eed1c34ba4e36ee9c43a6e0ffbad5a50019f..47a613be103fed5e8c346757bb650b6a27fc3120 100644 (file)
@@ -142,7 +142,7 @@ func ExprType(x *Node.Expr) *Node.Type {
 func (P *Parser) NoType(x *Node.Expr) *Node.Expr {
        if x != nil && x.tok == Scanner.TYPE {
                P.Error(x.pos, "expected expression, found type");
-               x = Node.NewLit(x.pos, Scanner.INT, 0);
+               x = Node.NewLit(x.pos, Scanner.INT, "");
        }
        return x;
 }