mirror of
https://github.com/golang/go
synced 2024-11-18 10:04:43 -07:00
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
This commit is contained in:
parent
ad5cd931d8
commit
32a3ce6799
@ -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:/"
|
||||
|
Loading…
Reference in New Issue
Block a user