1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:10:22 -07:00

off-by-one error assigning src files to functions

R=r
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=21178
CL=21187
This commit is contained in:
Russ Cox 2008-12-15 10:50:41 -08:00
parent 5bb0c4f88b
commit 7df571aef7

View File

@ -195,6 +195,8 @@ dosrcline(Sym *sym)
switch(sym->symtype) {
case 't':
case 'T':
if(strcmp(sym->name, (byte*)"etext") == 0)
break;
f = &func[nf++];
f->src = srcstring;
f->ln0 += lno;