summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-13 09:11:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-13 09:11:11 +0000
commit0c09cb2e91d53fa6986ac140d336fe7325a389a7 (patch)
tree07a130b71a37018a9ffaf3f970f42d4348db3a78 /file.c
parent4eff72b9891159bfb58d82d26869adfeaa37f6a5 (diff)
downloadruby-0c09cb2e91d53fa6986ac140d336fe7325a389a7.tar.gz
ruby-0c09cb2e91d53fa6986ac140d336fe7325a389a7.tar.xz
ruby-0c09cb2e91d53fa6986ac140d336fe7325a389a7.zip
* range.c (range_step): step might be float 0 < x < 1.
* eval.c (rb_thread_schedule): pause if no runnable thread when there's only one thread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 9996423dd..c3828b717 100644
--- a/file.c
+++ b/file.c
@@ -1755,6 +1755,7 @@ rb_file_s_basename(argc, argv)
if (NIL_P(fext) || !(f = rmext(p, ext))) {
f = chompdirsep(p) - p;
}
+ basename = rb_str_new(p, f);
}
basename = rb_str_new(p, f);
OBJ_INFECT(basename, fname);