1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* marshal.c (r_object0): copy instance variables to new regexp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-07-13 10:43:45 +00:00
parent 20d9aefccb
commit ecb962058a
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Mon Jul 13 19:41:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
* marshal.c (r_object0): copy instance variables to new regexp.
Mon Jul 13 17:49:11 2009 Koichi Sasada <ko1@atdot.net>
* vm_core.h, compile.c: declare struct iseq_inline_cache_entry.

View file

@ -1393,7 +1393,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
int options = r_byte(arg);
v = r_entry(rb_reg_new("", 0, options), arg);
VALUE v = rb_reg_new("", 0, options);
if (ivp) {
r_ivar(v, arg);
*ivp = Qfalse;
@ -1404,7 +1404,8 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
#define f_gsub_bang(x,y,z) rb_funcall(x, rb_intern("gsub!"), 2, y, z)
f_gsub_bang(str, rb_reg_new("\\\\u", 3, 0), rb_usascii_str_new_cstr("u"));
}
v = r_entry(rb_reg_new_str(str, options), arg);
str = r_entry(rb_reg_new_str(str, options), arg);
rb_copy_generic_ivar(str, v);
v = r_leave(v, arg);
}
break;