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

fix bug introduced in 33293

R=r
OCL=34253
CL=34253
This commit is contained in:
Russ Cox 2009-09-02 11:12:42 -07:00
parent ee2d5128d6
commit 0b3407e426

View File

@ -1316,7 +1316,7 @@ pc2line(uvlong pc)
if(pc<currpc || pc>txtend) if(pc<currpc || pc>txtend)
return ~0; return ~0;
for(c = pcline; c < pclineend && pc <= currpc; c++) { for(c = pcline; c < pclineend && currpc < pc; c++) {
u = *c; u = *c;
if(u == 0) { if(u == 0) {
currline += (c[1]<<24)|(c[2]<<16)|(c[3]<<8)|c[4]; currline += (c[1]<<24)|(c[2]<<16)|(c[3]<<8)|c[4];