diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-05-05 13:53:57 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-05-05 13:53:57 -0700 |
| commit | 2131f2bb6bf654fcbf58a66b815f49cffeefe229 (patch) | |
| tree | b17d407655c64c8405e995fb06267320a419ca27 /src/lib | |
| parent | 42109f55b071a8763e9ae615aeff56f4013eb194 (diff) | |
| download | rust-2131f2bb6bf654fcbf58a66b815f49cffeefe229.tar.gz rust-2131f2bb6bf654fcbf58a66b815f49cffeefe229.zip | |
Because good hackers at least check to see if the code compiles.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/fs.rs b/src/lib/fs.rs index 722f26611da..29719233e81 100644 --- a/src/lib/fs.rs +++ b/src/lib/fs.rs @@ -16,7 +16,7 @@ fn dirname(path p) -> path { // FIXME: the '/' character is a path separator on all 3 platforms we // support. This should probably be generalized a bit more in the // future, but for now this should work. - i = _str.rindex(p, '/'); + i = _str.rindex(p, '/' as u8); if (i == -1) { ret p; } @@ -57,5 +57,5 @@ fn list_dir(path p) -> vec[str] { // indent-tabs-mode: nil // c-basic-offset: 4 // buffer-file-coding-system: utf-8-unix -// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'"; +// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'"; // End: |
