Skip to content

Commit 3c27e63

Browse files
author
Charlie Somerville
committed
compile.c: use correct key for block when loading serialized iseqs
* compile.c (iseq_build_from_ary_body): Use :blockptr instead of :block as hash key when loading serialized instruction sequences from arrays. [Bug ruby#9455] [ruby-core:60146] git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@44720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 75b6ced commit 3c27e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5805,7 +5805,7 @@ iseq_build_from_ary_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
58055805
VALUE vmid = rb_hash_aref(op, ID2SYM(rb_intern("mid")));
58065806
VALUE vflag = rb_hash_aref(op, ID2SYM(rb_intern("flag")));
58075807
VALUE vorig_argc = rb_hash_aref(op, ID2SYM(rb_intern("orig_argc")));
5808-
VALUE vblock = rb_hash_aref(op, ID2SYM(rb_intern("block")));
5808+
VALUE vblock = rb_hash_aref(op, ID2SYM(rb_intern("blockptr")));
58095809

58105810
if (!NIL_P(vmid)) mid = SYM2ID(vmid);
58115811
if (!NIL_P(vflag)) flag = NUM2ULONG(vflag);

0 commit comments

Comments
 (0)