]> Cypherpunks repositories - gostls13.git/commitdiff
fix bug introduced in 33293
authorRuss Cox <rsc@golang.org>
Wed, 2 Sep 2009 18:12:42 +0000 (11:12 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 2 Sep 2009 18:12:42 +0000 (11:12 -0700)
R=r
OCL=34253
CL=34253

src/libmach/sym.c

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