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:
parent
5bb0c4f88b
commit
7df571aef7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user