Skip to content

Commit

Permalink
use rb_exec_recursive_outer() instead of rb_exec_recursive() to retri…
Browse files Browse the repository at this point in the history
…eve the hash value
  • Loading branch information
Watson1978 committed Jun 13, 2012
1 parent 2f8fefa commit 6b3908b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion range.c
Expand Up @@ -267,7 +267,7 @@ recursive_hash(VALUE range, VALUE dummy, int recur)
static VALUE
range_hash(VALUE range, SEL sel)
{
return rb_exec_recursive(recursive_hash, range, 0);
return rb_exec_recursive_outer(recursive_hash, range, 0);
}

static VALUE
Expand Down
2 changes: 1 addition & 1 deletion struct.c
Expand Up @@ -849,7 +849,7 @@ rb_struct_hash_r(VALUE s, VALUE s2, int recur)
static VALUE
rb_struct_hash(VALUE s, SEL sel)
{
return rb_exec_recursive(rb_struct_hash_r, s, Qnil);
return rb_exec_recursive_outer(rb_struct_hash_r, s, 0);
}

static VALUE
Expand Down

0 comments on commit 6b3908b

Please sign in to comment.