From 2131f2bb6bf654fcbf58a66b815f49cffeefe229 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 5 May 2011 13:53:57 -0700 Subject: Because good hackers at least check to see if the code compiles. --- src/lib/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/fs.rs') diff --git a/src/lib/fs.rs b/src/lib/fs.rs index 722f2661..29719233 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: -- cgit v1.2.3