summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-18 08:47:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-18 08:47:06 +0000
commit80a71ef0c37cb9852382d4662f470d833c57bcf4 (patch)
tree22b6a55b921d76a6d432f0a2156496ccb827be73 /eval.c
parent389789c094a14a17490e8ea32467187758e5a91f (diff)
downloadruby-80a71ef0c37cb9852382d4662f470d833c57bcf4.tar.gz
ruby-80a71ef0c37cb9852382d4662f470d833c57bcf4.tar.xz
ruby-80a71ef0c37cb9852382d4662f470d833c57bcf4.zip
* string.c (rb_str_replace): swap arguments of OBJ_INFECT.
* eval.c (rb_thread_schedule): should not select a thread which is not yet initialized. * time.c (time_plus): wrong boundary check. * time.c (time_minus): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index d7073c733..e1b33c2f1 100644
--- a/eval.c
+++ b/eval.c
@@ -7732,7 +7732,7 @@ rb_thread_schedule()
next = th;
break;
}
- if (th->status == THREAD_RUNNABLE) {
+ if (th->status == THREAD_RUNNABLE && th->stk_ptr) {
if (!next || next->priority < th->priority)
next = th;
}