mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
* 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
This commit is contained in:
parent
6e02769837
commit
d3a0ec7636
4 changed files with 27 additions and 1 deletions
5
ruby.c
5
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue