diff options
author | Robert Griesemer <gri@golang.org> | 2008-09-02 17:26:00 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2008-09-02 17:26:00 -0700 |
commit | 53dcc6ad3e3e90e24afa00b8783c1ee16a29e5a0 (patch) | |
tree | 22fc4702b3b290ee6a02a4f5de2ed3857d013606 | |
parent | e417ae4f9c4879225443a0d641ce4f376753accb (diff) | |
download | golang-53dcc6ad3e3e90e24afa00b8783c1ee16a29e5a0.tar.gz |
- adjusted my submitted code to work with latest compiler changes
R=r
OCL=14734
CL=14734
-rwxr-xr-x | usr/gri/gosrc/import.go | 2 | ||||
-rw-r--r-- | usr/gri/gosrc/parser.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/gri/gosrc/import.go b/usr/gri/gosrc/import.go index 8aff33306..b947c514d 100755 --- a/usr/gri/gosrc/import.go +++ b/usr/gri/gosrc/import.go @@ -41,7 +41,7 @@ func (I *Importer) ReadByte() byte { func (I *Importer) ReadInt() int { x := 0; - s := 0; // TODO eventually Go will require this to be a uint! + s := uint(0); b := I.ReadByte(); for b < 128 { x |= int(b) << s; diff --git a/usr/gri/gosrc/parser.go b/usr/gri/gosrc/parser.go index 789573190..023a0d85d 100644 --- a/usr/gri/gosrc/parser.go +++ b/usr/gri/gosrc/parser.go @@ -533,7 +533,7 @@ func (P *Parser) ParseAnonymousSignature() *Globals.Type { if P.tok == Scanner.PERIOD { p0 = sig.entries.len_; if P.semantic_checks && p0 != 1 { - P.Error(recv_pos, "must have exactly one receiver") + P.Error(recv_pos, "must have exactly one receiver"); panic("UNIMPLEMENTED (ParseAnonymousSignature)"); // TODO do something useful here } @@ -574,7 +574,7 @@ func (P *Parser) ParseNamedSignature() (pos int, ident string, typ *Globals.Type p0 = sig.entries.len_; if P.semantic_checks && p0 != 1 { print("p0 = ", p0, "\n"); - P.Error(recv_pos, "must have exactly one receiver") + P.Error(recv_pos, "must have exactly one receiver"); panic("UNIMPLEMENTED (ParseNamedSignature)"); // TODO do something useful here } |