diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-13 10:43:45 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-13 10:43:45 +0000 |
| commit | f19ee4c143b3b11891e00378d316ccd58e451de5 (patch) | |
| tree | 3c515a604d819400fc2435050d880200143ca10d | |
| parent | 321a2a0920a349bdccac0bb31e3f1ca0126acdd3 (diff) | |
| download | ruby-f19ee4c143b3b11891e00378d316ccd58e451de5.tar.gz ruby-f19ee4c143b3b11891e00378d316ccd58e451de5.tar.xz ruby-f19ee4c143b3b11891e00378d316ccd58e451de5.zip | |
* marshal.c (r_object0): copy instance variables to new regexp.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | marshal.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -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. @@ -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; |
