diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-13 09:11:11 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-13 09:11:11 +0000 |
commit | 937092b8203c373c919a6f307f91e17d4bec5bb1 (patch) | |
tree | 07a130b71a37018a9ffaf3f970f42d4348db3a78 /compar.c | |
parent | 050f2d84603bd9b3761f1e498f81ce74719caeea (diff) | |
download | ruby-937092b8203c373c919a6f307f91e17d4bec5bb1.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compar.c')
-rw-r--r-- | compar.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -72,6 +72,7 @@ cmp_lt(x, y) { VALUE c = rb_funcall(x, cmp, 1, y); + if (NIL_P(c)) return Qfalse; if (rb_cmpint(c) < 0) return Qtrue; return Qfalse; } |