From 071e963e0e8047bc0599aa1372fa79b6045c4618 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 17 Oct 2008 16:27:49 -0700 Subject: [PATCH] - fixed bug that wasn't caught by 6g (but by gccgo) R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=17380 CL=17380 --- usr/gri/pretty/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/gri/pretty/parser.go b/usr/gri/pretty/parser.go index f634eed1c3..47a613be10 100644 --- a/usr/gri/pretty/parser.go +++ b/usr/gri/pretty/parser.go @@ -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; }