Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(513)

Unified Diff: src/cmd/gc/obj.c

Issue 11894043: code review 11894043: gc: fix line directive processing on windows (Closed)
Patch Set: diff -r b70ee935c690 https://go.googlecode.com/hg/ Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/obj.c
===================================================================
--- a/src/cmd/gc/obj.c
+++ b/src/cmd/gc/obj.c
@@ -124,7 +124,7 @@
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:/"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b