summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-24 15:24:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-24 15:24:23 +0000
commitd3a0ec7636402bfe2f9c9d97d2a910fbca8db51a (patch)
treeff1c75554fe43498d3a3e2a629a3fca0e17cba97 /ruby.c
parent6e027698371e590d56b4ed4067bac26ab07923fc (diff)
* numeric.c (fix_pow): support Fixnum ** Float case directly
without coercing. [ruby-talk:142697] [ruby-talk:143054] * ruby.c (require_libraries): caused SEGV when continuation jumped in to the required library code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 736f585f27..f3888c8ae8 100644
--- a/ruby.c
+++ b/ruby.c
@@ -385,8 +385,11 @@ require_libraries()
ruby_set_current_source();
req_list_last = 0;
while (list) {
+ int state;
+
ruby_current_node = 0;
- rb_require(list->name);
+ rb_protect((VALUE (*)(VALUE))rb_require, (VALUE)list->name, &state);
+ if (state) rb_jump_tag(state);
tmp = list->next;
free(list->name);
free(list);