Commit a45c54d1 authored by Russ Cox's avatar Russ Cox

fix gobuild.

errors introduced in CL 30601

R=austin
DELTA=6  (3 added, 0 deleted, 3 changed)
OCL=30663
CL=30665
parent 0aef57e3
...@@ -71,8 +71,9 @@ func PushPkg(vp *[]*Pkg, p *Pkg) { ...@@ -71,8 +71,9 @@ func PushPkg(vp *[]*Pkg, p *Pkg) {
} }
v = a; v = a;
} }
*vp = v[0:n+1]; v = v[0:n+1];
v[n] = p; v[n] = p;
*vp = v;
} }
func PushFile(vp *[]*File, p *File) { func PushFile(vp *[]*File, p *File) {
...@@ -86,8 +87,9 @@ func PushFile(vp *[]*File, p *File) { ...@@ -86,8 +87,9 @@ func PushFile(vp *[]*File, p *File) {
} }
v = a; v = a;
} }
*vp = v[0:n+1]; v = v[0:n+1];
v[n] = p; v[n] = p;
*vp = v;
} }
// For sorting Files // For sorting Files
......
...@@ -82,8 +82,9 @@ func PushString(vp *[]string, p string) { ...@@ -82,8 +82,9 @@ func PushString(vp *[]string, p string) {
} }
v = a; v = a;
} }
*vp = v[0:n+1]; v = v[0:n+1];
v[n] = p; v[n] = p;
*vp = v;
} }
func run(argv []string, flag int) (ok bool) { func run(argv []string, flag int) (ok bool) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment