From: Alex Brainman Date: Fri, 26 Jul 2013 03:38:24 +0000 (+1000) Subject: gc: fix line directive processing on windows X-Git-Tag: go1.2rc2~936 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=32a3ce67993fab5d0a46dd697d0fbd5b2c4e306e;p=gostls13.git gc: fix line directive processing on windows This change should have been part of 5671737303a0. Fixes #5904 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/11894043 --- diff --git a/src/cmd/gc/obj.c b/src/cmd/gc/obj.c index f06b7ad451..5709a7aa4e 100644 --- a/src/cmd/gc/obj.c +++ b/src/cmd/gc/obj.c @@ -124,7 +124,7 @@ outwinname(Biobuf *b, Hist *h, char *ds, char *p) outzfile(b, p+1); } else { // relative name - if(h->offset == 0 && pathname && pathname[1] == ':') { + if(h->offset >= 0 && pathname && pathname[1] == ':') { if(tolowerrune(ds[0]) == tolowerrune(pathname[0])) { // using current drive zfile(b, pathname, 3); // leading "c:/"